demarches-normaliennes/app/controllers/super_admins/passwords_controller.rb
2024-08-22 09:26:48 +02:00

10 lines
199 B
Ruby

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