This is an automated email from the ASF dual-hosted git repository.

kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new b53691543a5 [bug](user login)fix PASSWORD_LOCK_TIME setting UNBOUNDED 
does not take effect #26585 (#26859)
b53691543a5 is described below

commit b53691543a5252ad158ef53da60c72fc6fd3e863
Author: Liqf <[email protected]>
AuthorDate: Tue Nov 14 00:05:50 2023 +0800

    [bug](user login)fix PASSWORD_LOCK_TIME setting UNBOUNDED does not take 
effect #26585 (#26859)
---
 .../src/main/java/org/apache/doris/mysql/privilege/PasswordPolicy.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/mysql/privilege/PasswordPolicy.java 
b/fe/fe-core/src/main/java/org/apache/doris/mysql/privilege/PasswordPolicy.java
index 4b374b98e49..0033b992c31 100644
--- 
a/fe/fe-core/src/main/java/org/apache/doris/mysql/privilege/PasswordPolicy.java
+++ 
b/fe/fe-core/src/main/java/org/apache/doris/mysql/privilege/PasswordPolicy.java
@@ -410,7 +410,8 @@ public class PasswordPolicy implements Writable {
             }
             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));
         }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to