mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
fix not working forced password change on login screen
This commit is contained in:
parent
f4521e3401
commit
f4acec1b82
@ -216,8 +216,15 @@ 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;
|
||||||
$username = $GLOBALS['egw_info']['user']['account_lid'];
|
if (!empty($GLOBALS['egw_info']['user']['account_id']) && $GLOBALS['egw_info']['user']['account_id'] > 0)
|
||||||
$account_id = $GLOBALS['egw_info']['user']['account_id'];
|
{
|
||||||
|
$username = $GLOBALS['egw_info']['user']['account_lid'];
|
||||||
|
$account_id = $GLOBALS['egw_info']['user']['account_id'];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$username = $GLOBALS['egw']->accounts->id2name($account_id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user