|
@@ -112,7 +112,7 @@ const StringBuffer &CEspApplicationPort::getAppFrameHtml(time_t &modified, const
|
|
|
|
|
|
if (needRefresh || embedded_url || !appFrameHtml.length())
|
|
|
{
|
|
|
- int passwordDaysRemaining = -1;//-1 means dont display change password screen
|
|
|
+ int passwordDaysRemaining = scPasswordExpired;//-1 means dont display change password screen
|
|
|
#ifdef _USE_OPENLDAP
|
|
|
ISecUser* user = ctx->queryUser();
|
|
|
ISecManager* secmgr = ctx->querySecManager();
|
|
@@ -120,8 +120,8 @@ const StringBuffer &CEspApplicationPort::getAppFrameHtml(time_t &modified, const
|
|
|
{
|
|
|
passwordDaysRemaining = user->getPasswordDaysRemaining();//-1 if expired, -2 if never expires
|
|
|
int passwordExpirationDays = (int)secmgr->getPasswordExpirationWarningDays();
|
|
|
- if (passwordDaysRemaining==-2 || passwordDaysRemaining > passwordExpirationDays)
|
|
|
- passwordDaysRemaining = -1;
|
|
|
+ if (passwordDaysRemaining == scPasswordNeverExpires || passwordDaysRemaining > passwordExpirationDays)
|
|
|
+ passwordDaysRemaining = scPasswordExpired;
|
|
|
}
|
|
|
#endif
|
|
|
StringBuffer xml;
|