Skip to content

Commit

Permalink
Move put session before redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatanklosko committed Jan 22, 2025
1 parent 952cdc5 commit 0a22ba8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/livebook/zta/livebook_teams.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0a22ba8

Please sign in to comment.