savvato Posted November 11, 2013 Share Posted November 11, 2013 Hello. Faced with the problem of the development of the module. In Prestashop 1.5.6 with switched off friendly URL, this function Tools::getValue('token'); returns a null value. Cash in back-office off, cookies and cache browser cleaned. With the friendly URL all work fine, the function returns a non-null value. What could be the problem? P.S. Sorry for my bad English, using Google translator. Link to comment Share on other sites More sharing options...
vekia Posted November 11, 2013 Share Posted November 11, 2013 what you've got in $smarty.get.token variable? you're talking about back office? or about front office? Link to comment Share on other sites More sharing options...
savvato Posted November 11, 2013 Author Share Posted November 11, 2013 Sorry for incomplete information, in BO. Here is the line of code $s = file_get_contents('http://ulogin.ru/token.php?token=' .Tools::getValue('token') . '&host=' .$link->getPageLink('authentication.php')); When using the function Tools::GetToken(); servise ulogin.ru returned 'token expiried' Link to comment Share on other sites More sharing options...
savvato Posted November 17, 2013 Author Share Posted November 17, 2013 solved, problem not with prestashop Link to comment Share on other sites More sharing options...
vekia Posted November 17, 2013 Share Posted November 17, 2013 hello may i know where the problem was? Link to comment Share on other sites More sharing options...
savvato Posted November 18, 2013 Author Share Posted November 18, 2013 it's simple. Service ulogin send the data via POST to a different address, not to '&host=' .$link->getPageLink('authentication.php')); therefore empty token Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now