reorder TOTP redirect (fixes philomena-dev/philomena#62)

This commit is contained in:
byte[] 2020-11-15 21:07:55 -05:00
parent 1b6be40eba
commit 3a5b95312f

View file

@ -47,9 +47,9 @@ defmodule PhilomenaWeb.Registration.TotpController do
{:ok, user} -> {:ok, user} ->
conn conn
|> UserAuth.totp_auth_user(user, %{})
|> put_flash(:totp_backup_codes, backup_codes) |> put_flash(:totp_backup_codes, backup_codes)
|> redirect(to: Routes.registration_totp_path(conn, :edit)) |> put_session(:user_return_to, Routes.registration_totp_path(conn, :edit))
|> UserAuth.totp_auth_user(user, %{})
end end
end end
end end