mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 14:57:59 +01:00
Ensure flash is fetched before putting flash
This commit is contained in:
parent
194b2686f6
commit
9d20b9c465
1 changed files with 1 additions and 0 deletions
|
@ -192,6 +192,7 @@ defmodule PhilomenaWeb.UserAuth do
|
||||||
conn
|
conn
|
||||||
else
|
else
|
||||||
conn
|
conn
|
||||||
|
|> fetch_flash()
|
||||||
|> put_flash(:error, "You must log in to access this page.")
|
|> put_flash(:error, "You must log in to access this page.")
|
||||||
|> maybe_store_return_to()
|
|> maybe_store_return_to()
|
||||||
|> redirect(to: Routes.session_path(conn, :new))
|
|> redirect(to: Routes.session_path(conn, :new))
|
||||||
|
|
Loading…
Reference in a new issue