diff --git a/lib/philomena_web/controllers/session/totp_controller.ex b/lib/philomena_web/controllers/session/totp_controller.ex index 2e429589..81ca6328 100644 --- a/lib/philomena_web/controllers/session/totp_controller.ex +++ b/lib/philomena_web/controllers/session/totp_controller.ex @@ -26,9 +26,7 @@ defmodule PhilomenaWeb.Session.TotpController do |> UserAuth.log_out_user() {:ok, user} -> - conn - |> UserAuth.totp_auth_user(user, user_params) - |> redirect(to: "/") + UserAuth.totp_auth_user(conn, user, user_params) end end end