demarches-normaliennes/app/controllers/super_admins/passwords_controller.rb

7 lines
133 B
Ruby
Raw Normal View History

2020-11-05 17:50:44 +01:00
class SuperAdmins::PasswordsController < Devise::PasswordsController
def update
super
self.resource.disable_otp!
end
end