summaryrefslogtreecommitdiff
path: root/lib/tasks/users.rake
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tasks/users.rake')
-rw-r--r--lib/tasks/users.rake9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/tasks/users.rake b/lib/tasks/users.rake
index cdee7fc8..4a941e39 100644
--- a/lib/tasks/users.rake
+++ b/lib/tasks/users.rake
@@ -16,11 +16,10 @@ namespace :users do
16 next 16 next
17 end 17 end
18 18
19 # Witnessed with the user as their own actor: there is no logged-in 19 user.update_columns(:otp_secret => nil,
20 # admin to attribute it to, and an unattributed hole in the log is worse 20 :otp_pending_secret => nil,
21 # than one that says "from the shell". 21 :otp_consumed_timestep => nil)
22 user.disable_otp!(:actor => user)
23 puts "Cleared the second factor for #{user.login}. " \ 22 puts "Cleared the second factor for #{user.login}. " \
24 "They can re-enrol under My account; recorded in the action log." 23 "They can re-enrol under My account."
25 end 24 end
26end 25end