The new password wasn't being stored in the session, so it was lost when $GLOBALS['phpgw']['user'] was recreated from session info through class.session.verify.

This prevented user passwords to be changed more than once per session. I'm sure this caused other bugs I'm not aware of...
This commit is contained in:
alpeb 2004-09-11 05:50:22 +00:00
parent 709fa42041
commit 9efbee384b

View File

@ -78,7 +78,7 @@
}
else
{
$GLOBALS['phpgw_info']['user']['passwd'] = $passwd_changed;
$GLOBALS['phpgw']->session->appsession('password','phpgwapi',base64_encode($n_passwd));
$GLOBALS['hook_values']['account_id'] = $GLOBALS['phpgw_info']['user']['account_id'];
$GLOBALS['hook_values']['old_passwd'] = $o_passwd;
$GLOBALS['hook_values']['new_passwd'] = $n_passwd;