Put new password in ['phpgw_info']['user']['passwd'] in case any hook_changepassword uses it

This commit is contained in:
alpeb 2004-09-11 13:33:41 +00:00
parent 9efbee384b
commit 53e7d1efa7

View File

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