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

8 lines
168 B
Ruby

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