diff --git a/lib/member.symphony.php b/lib/member.symphony.php index 916e17a..41c48b5 100644 --- a/lib/member.symphony.php +++ b/lib/member.symphony.php @@ -245,7 +245,8 @@ public function login(array $credentials, $isHashed = false) { $this->cookie->set('email', $data['email']); } - $this->cookie->set('password', $this->getMember()->getData($this->section->getField('authentication')->get('id'), true)->password); + $hashedPassword = $isHashed ? $data['password'] : $this->getMember()->getData($this->section->getField('authentication')->get('id'), true)->password; + $this->cookie->set('password', $hashedPassword ); self::$isLoggedIn = true;