From 57f109f9a2327cad503cf28c51805d54ffe0d041 Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Thu, 10 Mar 2022 08:22:34 +0000 Subject: [PATCH] Simplest thing to make spec pass --- app/controllers/auth/passwords_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/auth/passwords_controller.rb b/app/controllers/auth/passwords_controller.rb index ec709c653..95fcf0356 100644 --- a/app/controllers/auth/passwords_controller.rb +++ b/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