-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mfa: prevent the user from deleting the last MFA device (#6585)
* mfa: prevent the user from deleting the last MFA device When the cluster requires MFA for all users (when `second_factor` is `on`, `u2f` or `totp`, and not `off` or `optional`), users could lock themselves out by deleting the last device. Prevent that. Fixes #5803 * Make last MFA device deletion check more strict Separate by the type of the device and which type the cluster enforces.
- Loading branch information
Showing
2 changed files
with
134 additions
and
2 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