diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-04 03:11:18 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-04 03:11:18 +0000 |
commit | 6f286d7717f419489a08a9918621f438256e397b (patch) | |
tree | cab7a01b6df94b78edffe43f02b15c059849f009 /doc/security | |
parent | bc1574b93a8e731cacaacfee1e1b9b1ec8ac5a3e (diff) | |
download | gitlab-ce-6f286d7717f419489a08a9918621f438256e397b.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/security')
-rw-r--r-- | doc/security/two_factor_authentication.md | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/security/two_factor_authentication.md b/doc/security/two_factor_authentication.md index e4d59b6b465..0343dc3f551 100644 --- a/doc/security/two_factor_authentication.md +++ b/doc/security/two_factor_authentication.md @@ -99,7 +99,7 @@ This is a permanent and irreversible action. Users must reactivate 2FA to use it ### For a single user -To disable 2FA for non-administrator users, we recommend using the [API endpoint](../api/users.md#disable-two-factor-authentication) +To disable 2FA for non-administrator users, you should use the [API endpoint](../api/users.md#disable-two-factor-authentication) instead of the Rails console. Using the [Rails console](../administration/operations/rails_console.md), 2FA for a single user can be disabled. Connect to the Rails console and run: @@ -113,7 +113,6 @@ user_to_disable = User.find_by_username('<USERNAME>') TwoFactor::DestroyService.new(admin, user: user_to_disable).execute ``` -NOTE: The target user is notified that 2FA has been disabled. ### For all users |