use hash_equals() to compare password hash
This commit is contained in:
parent
47c758c5c0
commit
4cfb3f27f6
|
|
@ -80,7 +80,7 @@ class User extends Model
|
|||
{
|
||||
// compare directly if any responses is returned by event dispatcher
|
||||
if ($result = static::getEncryptedPwdFromEvent($rawPasswd, $this)) {
|
||||
return ($result == $this->password);
|
||||
return hash_equals($this->password, $result);
|
||||
}
|
||||
|
||||
return app('cipher')->verify($rawPasswd, $this->password, config('secure.salt'));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user