mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-22 02:56:06 +10:00
11 lines
278 B
Ruby
11 lines
278 B
Ruby
namespace :gitlab do
|
|
namespace :two_factor do
|
|
desc "GitLab | Disable Two-factor authentication (2FA) for all users"
|
|
task disable_for_all_users: :environment do
|
|
User.with_two_factor.find_each do |user|
|
|
user.disable_two_factor!
|
|
end
|
|
end
|
|
end
|
|
end
|