fix not working forced password change on login page with fallback auth

This commit is contained in:
Ralf Becker 2016-07-27 10:19:15 +02:00
parent 03709d1ba3
commit ffa5b37776

View File

@ -93,7 +93,7 @@ class Fallback implements Backend
*/ */
function change_password($old_passwd, $new_passwd, $account_id=0) function change_password($old_passwd, $new_passwd, $account_id=0)
{ {
if(!$account_id || $GLOBALS['egw_info']['flags']['currentapp'] == 'login') if(!$account_id)
{ {
$account_id = $GLOBALS['egw_info']['user']['account_id']; $account_id = $GLOBALS['egw_info']['user']['account_id'];
$username = $GLOBALS['egw_info']['user']['account_lid']; $username = $GLOBALS['egw_info']['user']['account_lid'];