We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 583afb1 commit abac58cCopy full SHA for abac58c
api/anubis/views/public/auth.py
@@ -169,7 +169,6 @@ def public_github_oauth():
169
170
# Get minimal information for setting username
171
github_username = github_user_info["login"].strip()
172
- name = github_user_info['name'].strip()
173
174
# If user exists
175
if current_user is not None:
@@ -188,6 +187,7 @@ def public_github_oauth():
188
187
189
# Grab email to use as netid
190
github_netid = f"github{github_user_info['id']}"
+ name = github_user_info['name'].strip() if 'name' in github_user_info else github_netid
191
192
# Create user
193
user = User(
0 commit comments