mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
read and evaluate auth systems password-last-changed information
This commit is contained in:
parent
4f0e104e27
commit
8153a7ac98
@ -451,7 +451,7 @@
|
||||
|
||||
if($_userData['account_passwd'])
|
||||
{
|
||||
$auth = CreateObject('phpgwapi.auth');
|
||||
$auth =& CreateObject('phpgwapi.auth');
|
||||
$auth->change_password($old_passwd, $_userData['account_passwd'], $_userData['account_id']);
|
||||
$GLOBALS['hook_values']['account_id'] = $_userData['account_id'];
|
||||
$GLOBALS['hook_values']['old_passwd'] = $old_passwd;
|
||||
@ -470,9 +470,8 @@
|
||||
}
|
||||
if ($_userData['account_lastpwd_change']==0)
|
||||
{
|
||||
if (!isset($auth)) $auth = CreateObject('phpgwapi.auth');
|
||||
if (!isset($auth)) $auth =& CreateObject('phpgwapi.auth');
|
||||
// we call that with NULL for 2nd Parameter as we are doing an admin action.
|
||||
error_log(__METHOD__.array2string($_userData));
|
||||
$auth->setLastPwdChange($_userData['account_id'],NULL, $_userData['account_lastpwd_change']);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user