summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2015-10-09 08:04:34 +0000
committerJacob Vosmaer <contact@jacobvosmaer.nl>2015-10-09 08:04:34 +0000
commit6e1ec3b9affa298cba44078c18ae06d82950cffc (patch)
tree42d49d072d93304bd70845bb6fa08cb03e3f0dc4 /doc
parent6ba1e17c44f9567cd00591bcbabf75fe6786ebac (diff)
parentcd46f4c36736ed548e440566095e51a3a43ca6d6 (diff)
downloadgitlab-ce-6e1ec3b9affa298cba44078c18ae06d82950cffc.tar.gz
Merge branch 'rs-2fa-task' into 'master'
Add task to disable 2FA for all users Addresses #2971 See merge request !1532
Diffstat (limited to 'doc')
-rw-r--r--doc/raketasks/user_management.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/raketasks/user_management.md b/doc/raketasks/user_management.md
index 4fbd20762da..629d38efc53 100644
--- a/doc/raketasks/user_management.md
+++ b/doc/raketasks/user_management.md
@@ -56,3 +56,17 @@ bundle exec rake gitlab:import:all_users_to_all_groups RAILS_ENV=production
```
block_auto_created_users: false
```
+
+## Disable Two-factor Authentication (2FA) for all users
+
+This task will disable 2FA for all users that have it enabled. This can be
+useful if GitLab's `.secret` file has been lost and users are unable to login,
+for example.
+
+```bash
+# omnibus-gitlab
+sudo gitlab-rake gitlab:two_factor:disable_for_all_users
+
+# installation from source
+bundle exec rake gitlab:two_factor:disable_for_all_users RAILS_ENV=production
+```