app/library/Auth.php: in login() use Phalcon\Security::checkHash() instead of password_verify()
This commit is contained in:
parent
9af7b3cc01
commit
31ac9224b3
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ class Auth extends Component
|
|||
if ($user) {
|
||||
// Verify password
|
||||
$hash = $user->getPassword();
|
||||
if (strlen($hash) > 1 && password_verify($password, $hash)) {
|
||||
if (strlen($hash) > 1 && $this->security->checkHash($password, $hash)) {
|
||||
|
||||
$this->setIdentity($user->getId());
|
||||
|
||||
|
|
|
|||
Reference in a new issue