Add gitlab:two_factor:disable_for_all_users task

This commit is contained in:
Robert Speicher 2015-10-07 15:46:18 -04:00
parent 1f11096c17
commit c3d9c55b23

View file

@ -0,0 +1,10 @@
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