Answer the question
In order to leave comments, you need to log in
Is it possible to get securitytoken from vBulletin externally?
I need to duplicate the search on the vBulletin 4 forum on the site. To do this, I copied the search form from the forum page. There is a hidden-field securitytoken , if I set its value to guest , then the search works, but only for an unregistered user. If the user is logged in, then when I try to search, I get an error.
Where can I get this security token from? A cursory inspection of the cookie turned up nothing.
Answer the question
In order to leave comments, you need to log in
In general, I solved it like this perversion:
$.ajax({
type: 'post',
url: '/forum', // директория с форумом
success: function(data) {
var token = $(data).find('input[name="securitytoken"]').val();
console.log(token);
}
});
And I just take SECURITYTOKEN from the console. It is used there as a constant.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question