Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Kunsi committed Dec 23, 2024
1 parent 9ae2449 commit 35e1dd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def oauth2_callback(provider):
session["oauth2_provider"] = provider
session["oauth2_userinfo"] = userinfo_json

user_is_admin = SSO_CONFIG[provider]["functions"]["is_admin"](userinfo)
user_is_admin = SSO_CONFIG[provider]["functions"]["is_admin"](userinfo_json)
REDIS.set(f"admin:{userid}", "1" if user_is_admin else "0")

if "redirect_after_login" in session:
Expand Down

0 comments on commit 35e1dd8

Please sign in to comment.