mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +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
|
||||
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))
|
||||
|
|
Loading…
Reference in a new issue