Skip to content

Commit

Permalink
[bug](user login)fix PASSWORD_LOCK_TIME setting UNBOUNDED does not ta…
Browse files Browse the repository at this point in the history
…ke effect #26585 (#26859)
  • Loading branch information
LemonLiTree authored Nov 13, 2023
1 parent 5ddabea commit b536915
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,8 @@ public long leftSeconds() {
}
if (lockTime.get() > 0 && passwordLockSeconds == UNBOUNDED) {
// unbounded lock
return 0;
// Returns 9999 seconds every time instead of 9999 seconds countdown
return 9999;
}
return Math.max(0, passwordLockSeconds - ((System.currentTimeMillis() - lockTime.get()) / 1000));
}
Expand Down

0 comments on commit b536915

Please sign in to comment.