Skip to content

Commit

Permalink
fix: login
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Aug 19, 2024
1 parent eac8045 commit d30b6d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ async def callback(code: str, request: Request) -> Redirect:
group_id = user["user_group"]

# litestar type this as dict[str, Any], but it maybe Empty
if not request.session:
back_to = "/"
else:
if isinstance(request.session, dict):
back_to = request.session.get("backTo", "/")
else:
back_to = "/"

request.set_session(
{
Expand Down

0 comments on commit d30b6d6

Please sign in to comment.