Ask for the old password before letting a user renew his password.
This commit is contained in:
parent
1203d51d82
commit
0840c20764
|
@ -129,7 +129,7 @@ $(document).ready (function () {
|
|||
resizable: true,
|
||||
draggable: true,
|
||||
modal: true,
|
||||
height: 260,
|
||||
height: 360,
|
||||
width: 590,
|
||||
overlay: {
|
||||
opacity: 0.5,
|
||||
|
|
|
@ -151,11 +151,12 @@ $change_pass = get_parameter_post('renew_password', 0);
|
|||
|
||||
if ($change_pass == 1) {
|
||||
|
||||
$password_old = (string) get_parameter_post ('old_password', '');
|
||||
$password_new = (string) get_parameter_post ('new_password', '');
|
||||
$password_confirm = (string) get_parameter_post ('confirm_new_password', '');
|
||||
$id = (string) get_parameter_post ('login', '');
|
||||
|
||||
$changed_pass = login_update_password_check ($password_new, $password_confirm, $id);
|
||||
$changed_pass = login_update_password_check ($password_old, $password_new, $password_confirm, $id);
|
||||
}
|
||||
|
||||
$searchPage = false;
|
||||
|
|
Loading…
Reference in New Issue