forked from extern/egroupware
read and evaluate auth systems password-last-changed information
This commit is contained in:
parent
8153a7ac98
commit
710c403d7c
@ -1003,7 +1003,10 @@
|
||||
$acl =& CreateObject('phpgwapi.acl',(int)$_GET['account_id']);
|
||||
$var['anonymous'] = $acl->check('anonymous',1,'phpgwapi') ? ' X' : ' ';
|
||||
$var['changepassword'] = !$acl->check('nopasswordchange',1,'preferences') ? ' X' : ' ';
|
||||
$var['mustchangepassword']= isset($userData['account_lastpwd_change']) && $userData['account_lastpwd_change']==0 ? ' X' : ' ';
|
||||
if (!isset($auth)) $auth =& CreateObject('phpgwapi.auth');
|
||||
$accLPWDC = $auth->getLastPwdChange($userData['account_lid']);
|
||||
if ($accLPWC !== false) $userData['account_lastpwd_change'] = $accLPWDC;
|
||||
$var['mustchangepassword']= (isset($userData['account_lastpwd_change']) && $userData['account_lastpwd_change']==0 ? ' X' : ' ');
|
||||
unset($acl);
|
||||
|
||||
if ($userData['status'])
|
||||
@ -1361,6 +1364,9 @@
|
||||
$acl->read_repository();
|
||||
$userData['anonymous'] = $acl->check('anonymous',1,'phpgwapi');
|
||||
$userData['changepassword'] = !$acl->check('nopasswordchange',1,'preferences');
|
||||
if (!isset($auth)) $auth =& CreateObject('phpgwapi.auth');
|
||||
$accLPWDC = $auth->getLastPwdChange($userData['account_lid']);
|
||||
if ($accLPWC !== false) $userData['account_lastpwd_change'] = $accLPWDC;
|
||||
$userData['mustchangepassword'] = (isset($userData['account_lastpwd_change']) && $userData['account_lastpwd_change']==0?true:false);
|
||||
unset($acl);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user