mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
Ask for the old password before letting a user renew his password.
(cherry picked from commit 0840c207646277c9eb7fb55504794d1d98e9c8a7)
This commit is contained in:
parent
2896fb5324
commit
c32c167b6e
@ -129,7 +129,7 @@ $(document).ready (function () {
|
|||||||
resizable: true,
|
resizable: true,
|
||||||
draggable: true,
|
draggable: true,
|
||||||
modal: true,
|
modal: true,
|
||||||
height: 260,
|
height: 360,
|
||||||
width: 590,
|
width: 590,
|
||||||
overlay: {
|
overlay: {
|
||||||
opacity: 0.5,
|
opacity: 0.5,
|
||||||
|
@ -153,11 +153,12 @@ $change_pass = get_parameter_post('renew_password', 0);
|
|||||||
|
|
||||||
if ($change_pass == 1) {
|
if ($change_pass == 1) {
|
||||||
|
|
||||||
|
$password_old = (string) get_parameter_post ('old_password', '');
|
||||||
$password_new = (string) get_parameter_post ('new_password', '');
|
$password_new = (string) get_parameter_post ('new_password', '');
|
||||||
$password_confirm = (string) get_parameter_post ('confirm_new_password', '');
|
$password_confirm = (string) get_parameter_post ('confirm_new_password', '');
|
||||||
$id = (string) get_parameter_post ('login', '');
|
$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;
|
$searchPage = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user