Fix GitHub link not saved on GitHub-based registration

This commit is contained in:
rubenwardy 2024-06-04 20:29:46 +01:00
parent 5e122279ec
commit 2653071886

@ -109,6 +109,9 @@ def callback(oauth_token):
elif user is None: elif user is None:
return redirect(url_for("users.login")) return redirect(url_for("users.login"))
user.github_username = github_username
user.github_user_id = user_id
add_audit_log(AuditSeverity.USER, user, "Registered with GitHub, display name=" + user.display_name, add_audit_log(AuditSeverity.USER, user, "Registered with GitHub, display name=" + user.display_name,
url_for("users.profile", username=user.username)) url_for("users.profile", username=user.username))