Reuse same Pajama compliant HAML in two places
What does this MR do and why?
Extracted Pajama compliant form from app/views/devise/sessions/two_factor.html.haml
and reused in app/views/admin/sessions/two_factor.html.haml
. Removed
non-compliant version: app/views/admin/sessions/_two_factor_otp.html.haml
This remove a non-compliant Pajamas button.
Changelog: changed
Screenshots or screen recordings
No changes
How to set up and validate locally
- On an incognito window, sign with a user that has two-factor enabled.
- Enable Admin Mode, with an admin user that has two-factor enabled, enter Admin Mode.
No changes should be noticed.
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 Eduardo Sanz García