Skip to content

Commit

Permalink
Merge branch 'email_2fa_fix_setting_init_nil' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
zephyranthes03 committed Feb 3, 2025
2 parents e3ad1d7 + ee2f535 commit 84cda51
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ defmodule RecognizerWeb.Accounts.UserTwoFactorController do
case current_user do
{:error, _} ->
conn.redirect(to: Routes.user_session_path(conn, :new))
{:error, _} ->
{:ok, nil} ->
conn.redirect(to: Routes.user_session_path(conn, :new))
{:ok, current_user} ->
%{notification_preference: %{two_factor: two_factor_method}} = current_user
Expand Down

0 comments on commit 84cda51

Please sign in to comment.