You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With "setUserPassword" mutator, when using laravel auth facade, it will fail (not sure it fails out of the box) when editing password, since "password" field is hidden, it hashes a null value.
Please test it, just in case I' ve fixed it with this guard:
public function setPasswordAttribute($password)
{
if(Hash::needsRehash($password))
$password = Hash::make($password);
$this->attributes['password'] = $password;
}
The text was updated successfully, but these errors were encountered:
With "setUserPassword" mutator, when using laravel auth facade, it will fail (not sure it fails out of the box) when editing password, since "password" field is hidden, it hashes a null value.
Please test it, just in case I' ve fixed it with this guard:
The text was updated successfully, but these errors were encountered: