You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/10/10 03:37:02 UTC

[GitHub] [doris] AshinGau commented on a diff in pull request #13051: [feature](auth) support user password policy and alter user stmt

AshinGau commented on code in PR #13051:
URL: https://github.com/apache/doris/pull/13051#discussion_r990895260


##########
fe/fe-core/src/main/cup/sql_parser.cup:
##########
@@ -1650,6 +1670,145 @@ opt_user_role ::=
     :}
     ;
 
+opt_password_option ::=
+    opt_passwd_history_policy:historyPolicy
+    opt_passwd_expire_policy:expirePolicy
+    opt_passwd_reuse_policy:reusePolicy
+    opt_failed_login_attempts:loginAttempts
+    opt_password_lock_time:passwdLockTime
+    opt_lock_account:lockAccount
+    {:
+        RESULT = new PasswordOptions(expirePolicy, historyPolicy, reusePolicy, loginAttempts, passwdLockTime, lockAccount);
+    :}
+    ;
+
+opt_passwd_expire_policy ::=
+    {:
+        RESULT = -2L;

Review Comment:
   Does `cup` has constant variable to identify `-2`? Or import a static value from embedded java code.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org