Forced password change fix
This commit is contained in:
parent
6941b010bd
commit
ad59923a0d
|
@ -1140,7 +1140,7 @@ Begin
|
||||||
If Not DateValid(Session.User.ThisUser.LastPWChange) Then
|
If Not DateValid(Session.User.ThisUser.LastPWChange) Then
|
||||||
Session.User.ThisUser.LastPWChange := DateDos2Str(CurDateDos, 1)
|
Session.User.ThisUser.LastPWChange := DateDos2Str(CurDateDos, 1)
|
||||||
Else
|
Else
|
||||||
If CurDateJulian - DateStr2Julian(Session.User.ThisUser.LastPWChange) >= 0 Then Begin
|
If CurDateJulian - DateStr2Julian(Session.User.ThisUser.LastPWChange) >= Config.PWChange Then Begin
|
||||||
Session.SystemLog('Required password change');
|
Session.SystemLog('Required password change');
|
||||||
Session.io.OutFullLn(Session.GetPrompt(478));
|
Session.io.OutFullLn(Session.GetPrompt(478));
|
||||||
Session.User.GetPassword(False);
|
Session.User.GetPassword(False);
|
||||||
|
|
Loading…
Reference in New Issue