// Updated isTokenValid(). Thanks Olea.

This commit is contained in:
bMancone committed 2012-03-27 13:05:51 +00:00
1 parent 9d80d9c952
commit d3f1bef276
3 files changed
+14 -11

No files matched your search

+4 -1
View File
@@ -881,7 +881,10 @@ class FrontControllerCore extends Controller
*/
public function isTokenValid()
{
return Configuration::get('PS_TOKEN_ENABLE') && strcasecmp(Tools::getToken(false), Tools::getValue('token')) && $this->context->customer->isLogged();
if (!Configuration::get('PS_TOKEN_ENABLE'))
return true;
return strcasecmp(Tools::getToken(false), Tools::getValue('token'));
}
/**