fix double render on totp auth

This commit is contained in:
byte[] 2020-07-31 17:06:53 -04:00
parent 86815477ef
commit d303d02d2c

View file

@ -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