mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 08:34:39 +00:00
set password, kill user_shouldChangePassword after successful reset
This commit is contained in:
parent
b5b7dceeac
commit
910e1d11e3
@ -85,7 +85,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
$config['system']['user'][$userindex[$username]]['pwd_changed_at'] = microtime(true);
|
||||
}
|
||||
if (!empty($_SESSION['user_shouldChangePassword'])) {
|
||||
session_start();
|
||||
unset($_SESSION['user_shouldChangePassword']);
|
||||
session_write_close();
|
||||
}
|
||||
if ($pconfig['passwordfld1'] !== '' || $pconfig['passwordfld2'] !== '') {
|
||||
local_user_set_password($config['system']['user'][$userindex[$username]], $pconfig['passwordfld1']);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user