Fix error management
This commit is contained in:
parent
20cc2c924e
commit
accc413596
@ -1907,8 +1907,8 @@ class User extends CommonObject
|
|||||||
if ($this->pass != $this->pass_indatabase && $this->pass != $this->pass_indatabase_crypted) {
|
if ($this->pass != $this->pass_indatabase && $this->pass != $this->pass_indatabase_crypted) {
|
||||||
// Si mot de passe saisi et different de celui en base
|
// Si mot de passe saisi et different de celui en base
|
||||||
$result = $this->setPassword($user, $this->pass, 0, $notrigger, $nosyncmemberpass);
|
$result = $this->setPassword($user, $this->pass, 0, $notrigger, $nosyncmemberpass);
|
||||||
if (!$nbrowsaffected) {
|
if ($result < 0) {
|
||||||
$nbrowsaffected++;
|
return -5;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2148,6 +2148,7 @@ class User extends CommonObject
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Now, we encrypt the new password
|
// Now, we encrypt the new password
|
||||||
$password_crypted = dol_hash($password);
|
$password_crypted = dol_hash($password);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user