Ensure flash is fetched before putting flash

This commit is contained in:
Liam 2024-06-01 23:34:38 -04:00
parent 194b2686f6
commit 9d20b9c465

View file

@ -192,6 +192,7 @@ defmodule PhilomenaWeb.UserAuth do
conn
else
conn
|> fetch_flash()
|> put_flash(:error, "You must log in to access this page.")
|> maybe_store_return_to()
|> redirect(to: Routes.session_path(conn, :new))