mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-18 00:09:06 +01:00
LSaddon ppolicy: fix badges color of password_expiration extraDisplayedColumn
This commit is contained in:
parent
728be381a6
commit
f5d21ec93c
1 changed files with 2 additions and 2 deletions
|
@ -180,9 +180,9 @@ function ppolicy_extraDisplayColumn_password_expiration($entry) {
|
|||
sprintf(_('Expired (since %s)'), date('Y-m-d H:i', $expiration_date)),
|
||||
'black');
|
||||
$delta = $expiration_date - $now;
|
||||
if ($delta >= LS_PPOLICY_CRITICAL_EXPIRATION_THRESHOLD)
|
||||
if ($delta <= LS_PPOLICY_CRITICAL_EXPIRATION_THRESHOLD)
|
||||
$badge_color = 'red';
|
||||
elseif ($delta >= LS_PPOLICY_WARNING_EXPIRATION_THRESHOLD)
|
||||
elseif ($delta <= LS_PPOLICY_WARNING_EXPIRATION_THRESHOLD)
|
||||
$badge_color = 'orange';
|
||||
else
|
||||
$badge_color = 'green';
|
||||
|
|
Loading…
Reference in a new issue