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

9 lines
168 B
Ruby
Raw Normal View History

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