mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-03 03:37:28 +01:00
Fix GitHub link not saved on GitHub-based registration
This commit is contained in:
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))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user