Commit b3723fe2 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Use gitlab_environment because we need:

* ask_to_continue
* Gitlab::TaskAbortedByUserError
parent 77a6afd5
---
title: Fix `gitlab-rake gitlab:two_factor:disable_for_all_users`
merge_request: 18154
author:
type: fixed
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment