From 2653071886cb49fc255f7608e4536bccb7d44c1a Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Tue, 4 Jun 2024 20:29:46 +0100 Subject: [PATCH] Fix GitHub link not saved on GitHub-based registration --- app/blueprints/github/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/blueprints/github/__init__.py b/app/blueprints/github/__init__.py index 96080279..ed36d381 100644 --- a/app/blueprints/github/__init__.py +++ b/app/blueprints/github/__init__.py @@ -109,6 +109,9 @@ def callback(oauth_token): elif user is None: 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, url_for("users.profile", username=user.username))