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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
dba2e9c3
Commit
dba2e9c3
authored
Jan 22, 2016
by
Achilleas Pipinellis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add image to 2fa security documentation
[ci skip]
parent
3e65fa54
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
doc/security/img/two_factor_authentication_settings.png
doc/security/img/two_factor_authentication_settings.png
+0
-0
doc/security/two_factor_authentication.md
doc/security/two_factor_authentication.md
+11
-4
No files found.
doc/security/img/two_factor_authentication_settings.png
0 → 100644
View file @
dba2e9c3
19.9 KB
doc/security/two_factor_authentication.md
View file @
dba2e9c3
...
@@ -20,7 +20,13 @@ In the Admin area under **Settings** (`/admin/application_settings`), look for
...
@@ -20,7 +20,13 @@ In the Admin area under **Settings** (`/admin/application_settings`), look for
the "Sign-in Restrictions" area, where you can configure both.
the "Sign-in Restrictions" area, where you can configure both.
If you want 2FA enforcement to take effect on next login, change the grace
If you want 2FA enforcement to take effect on next login, change the grace
period to
`0`
period to
`0`
.
---
![
Two factor authentication admin settings
](
img/two_factor_authentication_settings.png
)
---
## Disabling 2FA for everyone
## Disabling 2FA for everyone
...
@@ -28,11 +34,12 @@ There may be some special situations where you want to disable 2FA for everyone
...
@@ -28,11 +34,12 @@ There may be some special situations where you want to disable 2FA for everyone
even when forced 2FA is disabled. There is a rake task for that:
even when forced 2FA is disabled. There is a rake task for that:
```
```
#
use this command if you've installed GitLab with the Omnibus package
#
Omnibus installations
sudo gitlab-rake gitlab:two_factor:disable_for_all_users
sudo gitlab-rake gitlab:two_factor:disable_for_all_users
#
if you've installed GitLab
from source
#
Installations
from source
sudo -u git -H bundle exec rake gitlab:two_factor:disable_for_all_users RAILS_ENV=production
sudo -u git -H bundle exec rake gitlab:two_factor:disable_for_all_users RAILS_ENV=production
```
```
**IMPORTANT: this is a permanent and irreversible action. Users will have to reactivate 2FA from scratch if they want to use it again.**
**
IMPORTANT: this is a permanent and irreversible action. Users will have to
reactivate 2FA from scratch if they want to use it again.
**
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