-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Two Factor: Allow users to log in with backup codes and improve the s…
…ecurity keys flow (#87128) * Two Factor Security Keys: Automatically prompt for a security key. The current 2fa authentication flow with security keys require users to click on the "Continue with security key" button before we attempting to initiate this flow. This change automatically asks for a security key if the given account supports it. If it fails for some reason, the old button will still work as always if the user decides to retry the same action. * Allow users to log in with backup codes when the enhanced security mode is on. * Remove useless code. This removes the `setTimeout()` call as well as the `event.preventDefault()` statements which don't seem to be needed. * Remove the data-e2e-link attribute * Remove useless setTimeout/event.preventDefault statements. * Reinstante event.preventDefault() This partially reverts 1fb7185 and 31663da `event.preventDefault()` is needed one one manually clicks on the "Continue with security" key button after a failed authentication attempt. If it's missing, the form is submitted and there's a full page reload.
- Loading branch information
Showing
3 changed files
with
44 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters