forked from extern/egroupware
fix not working forced password change on login screen
This commit is contained in:
parent
e931d39a8d
commit
8256b99443
@ -216,10 +216,17 @@ class Ads implements Backend
|
|||||||
if(!$account_id || $GLOBALS['egw_info']['flags']['currentapp'] == 'login')
|
if(!$account_id || $GLOBALS['egw_info']['flags']['currentapp'] == 'login')
|
||||||
{
|
{
|
||||||
$admin = false;
|
$admin = false;
|
||||||
|
if (!empty($GLOBALS['egw_info']['user']['account_id']) && $GLOBALS['egw_info']['user']['account_id'] > 0)
|
||||||
|
{
|
||||||
$username = $GLOBALS['egw_info']['user']['account_lid'];
|
$username = $GLOBALS['egw_info']['user']['account_lid'];
|
||||||
$account_id = $GLOBALS['egw_info']['user']['account_id'];
|
$account_id = $GLOBALS['egw_info']['user']['account_id'];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
$username = $GLOBALS['egw']->accounts->id2name($account_id);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
$admin = true;
|
$admin = true;
|
||||||
$username = $GLOBALS['egw']->accounts->id2name($account_id);
|
$username = $GLOBALS['egw']->accounts->id2name($account_id);
|
||||||
|
Loading…
Reference in New Issue
Block a user