G
G
GreatRash2013-11-27 13:20:51
PHP
GreatRash, 2013-11-27 13:20:51

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

2 answer(s)
G
GreatRash, 2013-11-27
@GreatRash

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);
  }
});

This is of course a crutch, but in another way I don’t know how to do it at all.

B
bano-notit, 2016-06-09
@bano-notit

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 question

Ask a Question

731 491 924 answers to any question