6
0
Fork 0
release
李静 2022-01-05 13:14:23 +08:00
parent 2cad4e9a11
commit 3e9aa9971a
1 changed files with 3 additions and 0 deletions

View File

@ -314,6 +314,9 @@ class User extends Model implements AuthorizableContract, AuthenticatableContrac
$value = null;
} elseif (Hash::needsRehash($value)) {
$value = Hash::make($value);
// 清空老密码
$this->attributes['old_password'] = null;
}
$this->attributes['password'] = $value;