diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2018-04-03 17:55:32 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2018-04-03 18:00:09 +0300 |
commit | b3723fe28ef5dde912994b2f180622aa87e96d12 (patch) | |
tree | 24e4d57309259e18d1a2e699b6ad903565f4c67d /lib/tasks | |
parent | 77a6afd569243e479499231c16c5e72e24707f0d (diff) |
Use gitlab_environment because we need:
* ask_to_continue
* Gitlab::TaskAbortedByUserError
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/gitlab/two_factor.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/gitlab/two_factor.rake b/lib/tasks/gitlab/two_factor.rake index 7728c485e8d..6b22499a5c8 100644 --- a/lib/tasks/gitlab/two_factor.rake +++ b/lib/tasks/gitlab/two_factor.rake @@ -1,7 +1,7 @@ namespace :gitlab do namespace :two_factor do desc "GitLab | Disable Two-factor authentication (2FA) for all users" - task disable_for_all_users: :environment do + task disable_for_all_users: :gitlab_environment do scope = User.with_two_factor count = scope.count |