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

11 lines
199 B
Ruby
Raw Normal View History

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