Add PasswordExpirationSystem control module for password expiration feature
What does this MR do and why?
base on !1012 (merged)
For password expiration feature, We need two control methods:
-
visible?
: Controls whether the password expiration attributes field is visible.(include api, ui GET/UPDATE)
::Gitlab::PasswordExpirationSystem.visible?
-
enabled?
: Controls whether password expiration feature is enabled.(include expire password, notice via email)
::Gitlab::PasswordExpirationSystem.enabled?
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
由 奇廷 陈 编辑于