Update
parent
2cad4e9a11
commit
3e9aa9971a
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue