mirror of
https://github.com/Mibew/mibew.git
synced 2025-01-31 05:20:30 +03:00
Use correct login to generate password hash when it is changed
This commit is contained in:
parent
47ee6edaad
commit
c27a0e1aea
@ -219,7 +219,7 @@ class ProfileController extends AbstractController
|
||||
) + operator_by_id($op_id);
|
||||
// Set the password only if it's not an empty string.
|
||||
if ($password !== '') {
|
||||
$target_operator['vcpassword'] = calculate_password_hash($login, $password);
|
||||
$target_operator['vcpassword'] = calculate_password_hash($target_operator['vclogin'], $password);
|
||||
}
|
||||
// Update operator's fields in the database.
|
||||
update_operator($target_operator);
|
||||
|
Loading…
Reference in New Issue
Block a user