diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-10-07 15:46:54 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-10-07 15:46:54 -0400 |
commit | 5a28a5b72634ba180180dfeaeca1d2b0d988e177 (patch) | |
tree | 6fcd4552c0b24d9b2a46272042377fb9e0275eab | |
parent | c3d9c55b23183a51c941800d94ed0ff085e5a3b8 (diff) | |
download | gitlab-ce-5a28a5b72634ba180180dfeaeca1d2b0d988e177.tar.gz |
Add docs for gitlab:two_factor:disable_for_all_users task
-rw-r--r-- | doc/raketasks/user_management.md | 14 |
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 +``` |