mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
pass acount_id to crackcheck, as it is required for crackcheck rule validation forbid_name
This commit is contained in:
parent
d48e8f4d84
commit
2bdcd29582
@ -226,7 +226,7 @@ class auth
|
||||
*/
|
||||
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);
|
||||
}
|
||||
|
@ -31,7 +31,7 @@
|
||||
|
||||
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']['old_passwd'] = $old;
|
||||
|
Loading…
Reference in New Issue
Block a user