c639a3f733
https://github.com/devise-two-factor/devise-two-factor#disabling-automatic-login-after-password-resets thanks Greg Molnar
14 lines
250 B
Ruby
14 lines
250 B
Ruby
# frozen_string_literal: true
|
|
|
|
class PasswordsController < Devise::PasswordsController
|
|
class Current < ActiveSupport::CurrentAttributes
|
|
attribute :user
|
|
end
|
|
|
|
def update
|
|
super do |resource|
|
|
Current.user = resource
|
|
end
|
|
end
|
|
end
|