Skip to content

Commit 58fb006

Browse files
author
Marius Cramer
committed
- Fixed: FS#3691 - Admin re-login after change admin password fails
1 parent 49b3f5e commit 58fb006

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

interface/web/tools/user_settings.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,16 @@ function onBeforeUpdate() {
9797
$app->error('Invalid language.');
9898
}
9999
}
100+
101+
function onAfterUpdate() {
102+
global $app;
103+
104+
if($_POST['passwort'] != '') {
105+
$tmp_user = $app->db->queryOneRecord("SELECT passwort FROM sys_user WHERE userid = '".$app->functions->intval($_SESSION['s']['user']['userid'])."'");
106+
$_SESSION['s']['user']['passwort'] = $tmp_user['passwort'];
107+
unset($tmp_user);
108+
}
109+
}
100110

101111

102112
}

0 commit comments

Comments
 (0)