From 071ad52c7fb2a7e4d22640991bd39ec863c0bd50 Mon Sep 17 00:00:00 2001 From: Josh Pigford Date: Wed, 5 Mar 2025 13:04:45 -0600 Subject: [PATCH] Potential fix for MFA login issues --- app/controllers/mfa_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/mfa_controller.rb b/app/controllers/mfa_controller.rb index ec3071e5..da161476 100644 --- a/app/controllers/mfa_controller.rb +++ b/app/controllers/mfa_controller.rb @@ -29,7 +29,8 @@ class MfaController < ApplicationController if @user&.verify_otp?(params[:code]) session.delete(:mfa_user_id) @session = create_session_for(@user) - redirect_to root_path + Rails.logger.info "MFA verification successful for user #{@user.id}. Session created: #{@session.id}" + redirect_to root_path, turbo: false else flash.now[:alert] = t(".invalid_code") render :verify, status: :unprocessable_entity