demarches-normaliennes/app/controllers/super_admins/passwords_controller.rb
2020-11-05 17:51:38 +01:00

6 lines
133 B
Ruby

class SuperAdmins::PasswordsController < Devise::PasswordsController
def update
super
self.resource.disable_otp!
end
end