Password modal to confirm two-factor actions
What does this MR do and why?
We created a new Vue component, TwoFactorAction
, to replace
ManageTwoFactorForm
and to be used to destroy the one-time password
authenticator.
The simpler TwoFactorAction
component uses a better password field that
toggle the visibility and takes less space because the password is
inside the modal. By using the same modal in the whole page it makes the
experience more consistent.
The new component is under the two_factor_actions
feature flag.
On a follow-up, we will again re-use this new confirm modal to delete WebAuthn device.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
State | Before | After |
---|---|---|
Close modal | ||
Open modal |
How to set up and validate locally
- Enable the
two_factor_actions
(and optionallydelete_otp_no_webauthn
):/rails/features
- Go to
/-/profile/two_factor_auth
- Create and destroy authenticators