mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
reorder TOTP redirect (fixes philomena-dev/philomena#62)
This commit is contained in:
parent
1b6be40eba
commit
3a5b95312f
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue