Commit 67ca10f3 authored by Douwe Maan's avatar Douwe Maan

Merge branch '44425-use-gitlab_environment' into 'master'

Resolve "Disabling two factor authentication via gitlab-rake fails"

Closes #44425

See merge request gitlab-org/gitlab-ce!18154
parents 4131c39a b3723fe2
---
title: Fix `gitlab-rake gitlab:two_factor:disable_for_all_users`
merge_request: 18154
author:
type: fixed
namespace :gitlab do namespace :gitlab do
namespace :two_factor do namespace :two_factor do
desc "GitLab | Disable Two-factor authentication (2FA) for all users" 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 scope = User.with_two_factor
count = scope.count 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