Skip to content

Commit 583afb1

Browse files
committed
FIX handle github created users
1 parent fdb46f4 commit 583afb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/anubis/views/public/auth.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,11 @@ def public_github_oauth():
187187
if user is None:
188188

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

192192
# Create user
193193
user = User(
194-
netid=email,
194+
netid=github_netid,
195195
name=name,
196196
github_username=github_username,
197197

0 commit comments

Comments
 (0)