Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
06766988
Commit
06766988
authored
Sep 08, 2021
by
Gerardo Gutierrez
Committed by
Evan Read
Sep 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add console command to disable 2FA enforce
parent
b41f073f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
doc/security/two_factor_authentication.md
doc/security/two_factor_authentication.md
+9
-0
No files found.
doc/security/two_factor_authentication.md
View file @
06766988
...
...
@@ -35,6 +35,15 @@ To enable 2FA for all users:
If you want 2FA enforcement to take effect during the next sign-in attempt,
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
> [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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment