Commit 65d4eaaf authored by Evan Read's avatar Evan Read

Merge branch 'doc-gerardo-master-patch-65455' into 'master'

Add console command to disable 2FA enforce

See merge request gitlab-org/gitlab!69517
parents b41f073f 06766988
...@@ -35,6 +35,15 @@ To enable 2FA for all users: ...@@ -35,6 +35,15 @@ To enable 2FA for all users:
If you want 2FA enforcement to take effect during the next sign-in attempt, If you want 2FA enforcement to take effect during the next sign-in attempt,
change the grace period to `0`. change the grace period to `0`.
## Disabling 2FA enforcement through rails console
Using the [rails console](../administration/operations/rails_console.md), enforcing 2FA for
all user can be disabled. Connect to the rails console and run:
```ruby
Gitlab::CurrentSettings.update!('require_two_factor_authentication': false)
```
## Enforcing 2FA for all users in a group ## Enforcing 2FA for all users in a group
> [Introduced in](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/24965) GitLab 12.0, 2FA settings for a group are also applied to subgroups. > [Introduced in](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/24965) GitLab 12.0, 2FA settings for a group are also applied to subgroups.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment