fix for changing of users password and setting in phpgw_sessions

This commit is contained in:
skeeter 2000-12-21 01:08:10 +00:00
parent 1083112979
commit cce88109f4
2 changed files with 4 additions and 1 deletions

View File

@ -116,6 +116,8 @@
if ($account_info["old_loginid"] != $account_info["loginid"]) {
$phpgw->db->query("update accounts set account_lid='" . $account_info["loginid"]
. "' where account_lid='" . $account_info["old_loginid"] . "'");
$phpgw->db->query("update phpgw_sessions set session_lid='" . $account_info["loginid"]
. "' where session_lid='" . $account_info["old_loginid"] . "'");
// $account_info["loginid"] = $account_info["n_loginid"];
}
@ -125,7 +127,7 @@
. "account_lastpwd_change='" . time() . "' where account_lid='"
. $account_info["loginid"] . "'");
$phpgw->db->query("update phpgw_sessions set session_pwd='" . addslashes($account_info["passwd"])
. "' where session_lid='" . $lid . "'");
. "' where session_lid='" . $account_info["loginid"] . "'");
}
while ($permission = each($account_info["permissions"])) {

View File

@ -35,6 +35,7 @@
- Merged in patch for Danish translation
Thanks again zaphod
- Fixed birthday reminders not showing up
- Fixed changing of users password through admin.
[0.9.7] - Fixed SQL error in tts
- Fixed table locking in admin -> edit account