// change passwd in cookie after changed it

This commit is contained in:
Rémi Gaillard
2013-08-07 13:51:18 +02:00
parent d99a5a740e
commit 6ccf3e839d
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -248,7 +248,7 @@ class EmployeeCore extends ObjectModel
{
/* Employee is valid only if it can be load and if cookie password is the same as database one */
Cache::store('isLoggedBack'.$this->id, (
$this->id && Validate::isUnsignedId($this->id) && Employee::checkPassword($this->id, $this->passwd)
$this->id && Validate::isUnsignedId($this->id) && Employee::checkPassword($this->id, Context::getContext()->cookie->passwd)
&& (!isset($this->remote_addr) || $this->remote_addr == ip2long(Tools::getRemoteAddr()) || !Configuration::get('PS_COOKIE_CHECKIP'))
));
}