Ask for the old password before letting a user renew his password.

(cherry picked from commit 0840c20764)
This commit is contained in:
Ramon Novoa 2015-05-19 11:26:36 +02:00
parent 2896fb5324
commit c32c167b6e
2 changed files with 3 additions and 2 deletions

View File

@ -129,7 +129,7 @@ $(document).ready (function () {
resizable: true,
draggable: true,
modal: true,
height: 260,
height: 360,
width: 590,
overlay: {
opacity: 0.5,

View File

@ -153,11 +153,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;