// Updated isTokenValid(). Thanks Olea.

This commit is contained in:
bMancone
2012-03-27 13:05:51 +00:00
parent feb7682e67
commit ba24216b82
3 changed files with 14 additions and 11 deletions
+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'));
}
/**