mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 22:43:47 +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)),
|
sprintf(_('Expired (since %s)'), date('Y-m-d H:i', $expiration_date)),
|
||||||
'black');
|
'black');
|
||||||
$delta = $expiration_date - $now;
|
$delta = $expiration_date - $now;
|
||||||
if ($delta >= LS_PPOLICY_CRITICAL_EXPIRATION_THRESHOLD)
|
if ($delta <= LS_PPOLICY_CRITICAL_EXPIRATION_THRESHOLD)
|
||||||
$badge_color = 'red';
|
$badge_color = 'red';
|
||||||
elseif ($delta >= LS_PPOLICY_WARNING_EXPIRATION_THRESHOLD)
|
elseif ($delta <= LS_PPOLICY_WARNING_EXPIRATION_THRESHOLD)
|
||||||
$badge_color = 'orange';
|
$badge_color = 'orange';
|
||||||
else
|
else
|
||||||
$badge_color = 'green';
|
$badge_color = 'green';
|
||||||
|
|
Loading…
Reference in a new issue