Skip to content

Commit

Permalink
FIX handle github created users
Browse files Browse the repository at this point in the history
  • Loading branch information
wabscale committed Feb 2, 2024
1 parent fdb46f4 commit 583afb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/anubis/views/public/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,11 @@ def public_github_oauth():
if user is None:

# Grab email to use as netid
email = github_user_info['email'].strip()
github_netid = f"github{github_user_info['id']}"

# Create user
user = User(
netid=email,
netid=github_netid,
name=name,
github_username=github_username,

Expand Down

0 comments on commit 583afb1

Please sign in to comment.