From 583afb1f588a19360c56f4a2aa4d6bf503b334c5 Mon Sep 17 00:00:00 2001 From: John McCann Cunniff Jr Date: Fri, 2 Feb 2024 14:13:53 -0500 Subject: [PATCH] FIX handle github created users --- api/anubis/views/public/auth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/anubis/views/public/auth.py b/api/anubis/views/public/auth.py index 524fdfdd..061ee07f 100644 --- a/api/anubis/views/public/auth.py +++ b/api/anubis/views/public/auth.py @@ -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,