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 e795cde
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,8 @@ def oauth2_callback(provider):
session["oauth2_provider"] = provider
session["oauth2_userinfo"] = userinfo_json

user_is_admin = SSO_CONFIG[provider]["functions"]["is_admin"](userinfo)
userid = SSO_CONFIG[provider]["functions"]["userid"](userinfo_json)
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 e795cde

Please sign in to comment.