don't mark never expired accounts as disabled - patch from Christoph Brill
This commit is contained in:
parent
2750bd3c92
commit
e2c4dbf1af
@ -164,6 +164,10 @@ auth_check_pwd_chg(char* user)
|
||||
now=g_time1();
|
||||
today=now/SECS_PER_DAY;
|
||||
|
||||
if (stp->sp_expire == -1)
|
||||
{
|
||||
return AUTH_PWD_CHG_OK;
|
||||
}
|
||||
if (today >= (stp->sp_lstchg + stp->sp_max - stp->sp_warn))
|
||||
{
|
||||
return AUTH_PWD_CHG_CHANGE;
|
||||
|
Loading…
Reference in New Issue
Block a user