Commit c3d9c55b authored by Robert Speicher's avatar Robert Speicher

Add gitlab:two_factor:disable_for_all_users task

parent 1f11096c
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
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