From d303d02d2ca936f00451d9e8b9b58a23b5f13811 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Fri, 31 Jul 2020 17:06:53 -0400 Subject: [PATCH] fix double render on totp auth --- lib/philomena_web/controllers/session/totp_controller.ex | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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