mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-07 13:34:55 +08:00
Move put session before redirect
This commit is contained in:
parent
952cdc5a32
commit
0a22ba80d7
1 changed files with 2 additions and 2 deletions
|
@ -56,8 +56,8 @@ defmodule Livebook.ZTA.LivebookTeams do
|
|||
else
|
||||
_ ->
|
||||
{conn
|
||||
|> redirect(to: conn.request_path)
|
||||
|> put_session(:teams_error, true)
|
||||
|> redirect(to: conn.request_path)
|
||||
|> halt(), nil}
|
||||
end
|
||||
end
|
||||
|
@ -142,8 +142,8 @@ defmodule Livebook.ZTA.LivebookTeams do
|
|||
|
||||
_ ->
|
||||
{conn
|
||||
|> redirect(to: conn.request_path)
|
||||
|> put_session(:teams_error, true)
|
||||
|> redirect(to: conn.request_path)
|
||||
|> halt(), nil}
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue