Frontend (user-facing) to allow remember me to be disabled
What does this MR do and why?
Describe in detail what your merge request does and why.
When Remember Me is disabled via application settings, do not show the checkbox in the various sign-in UI locations. This is the frontend for https://gitlab.com/gitlab-org/gitlab/-/issues/369133.
- Follow-up to !119226 (merged).
- Backend and UI to modify the application setting will be in separate MRs.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After (*When remember me is disabled) |
---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Disable application setting via Rails console
settings = ApplicationSetting.last settings.remember_me_enabled = false settings.save
- Visit sign-in page. Depending on which authentication methods you have configured you can look at different tabs. None should contain 'Remember me' checkbox. Similarly, the OmniAuth sign-in section below the sign-in boxes/tabs should not have a 'Remember me' tab, either.
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.
Edited by Drew Blessing