Fix error management

This commit is contained in:
Laurent Destailleur 2022-01-21 15:26:54 +01:00
parent 20cc2c924e
commit accc413596

View File

@ -1907,8 +1907,8 @@ class User extends CommonObject
if ($this->pass != $this->pass_indatabase && $this->pass != $this->pass_indatabase_crypted) {
// Si mot de passe saisi et different de celui en base
$result = $this->setPassword($user, $this->pass, 0, $notrigger, $nosyncmemberpass);
if (!$nbrowsaffected) {
$nbrowsaffected++;
if ($result < 0) {
return -5;
}
}
}
@ -2148,6 +2148,7 @@ class User extends CommonObject
}
}
// Now, we encrypt the new password
$password_crypted = dol_hash($password);
}