Browse Source

Simplest thing to make spec pass

pull/367/head
baarkerlounger 3 years ago
parent
commit
57f109f9a2
  1. 1
      app/controllers/auth/passwords_controller.rb

1
app/controllers/auth/passwords_controller.rb

@ -37,6 +37,7 @@ class Auth::PasswordsController < Devise::PasswordsController
set_flash_message!(:notice, password_update_flash_message)
resource.after_database_authentication
sign_in(resource_name, resource)
warden.session(:admin_user)[TwoFactorAuthentication::NEED_AUTHENTICATION] = true if resource_class == AdminUser
else
set_flash_message!(:notice, :updated_not_active)
end

Loading…
Cancel
Save