pass acount_id to crackcheck, as it is required for crackcheck rule validation forbid_name

This commit is contained in:
Klaus Leithoff 2013-07-16 10:42:31 +00:00
parent d48e8f4d84
commit 2bdcd29582
2 changed files with 2 additions and 2 deletions

View File

@ -226,7 +226,7 @@ class auth
*/ */
function change_password($old_passwd, $new_passwd, $account_id=0) function change_password($old_passwd, $new_passwd, $account_id=0)
{ {
if (($err = self::crackcheck($new_passwd))) if (($err = self::crackcheck($new_passwd,null,null,null,$account_id)))
{ {
throw new egw_exception_wrong_userinput($err); throw new egw_exception_wrong_userinput($err);
} }

View File

@ -31,7 +31,7 @@
function changepass($old,$new) function changepass($old,$new)
{ {
if (($ret = $GLOBALS['egw']->auth->change_password($old, $new))) if (($ret = $GLOBALS['egw']->auth->change_password($old, $new, $GLOBALS['egw_info']['user']['account_id'])))
{ {
$GLOBALS['hook_values']['account_id'] = $GLOBALS['egw_info']['user']['account_id']; $GLOBALS['hook_values']['account_id'] = $GLOBALS['egw_info']['user']['account_id'];
$GLOBALS['hook_values']['old_passwd'] = $old; $GLOBALS['hook_values']['old_passwd'] = $old;