mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-22 22:12:24 +01:00
Add username to already linked error message
This doesn't introduce user enumeration as GitHub username associations were already public
This commit is contained in:
parent
465370d3fc
commit
f77ecd824c
@ -85,7 +85,8 @@ def callback(oauth_token):
|
|||||||
elif userByGithub == current_user:
|
elif userByGithub == current_user:
|
||||||
return redirect(redirect_to)
|
return redirect(redirect_to)
|
||||||
else:
|
else:
|
||||||
flash(gettext("GitHub account is already associated with another user"), "danger")
|
flash(gettext("GitHub account is already associated with another user: %(username)s",
|
||||||
|
username=userByGithub.username), "danger")
|
||||||
return redirect(redirect_to)
|
return redirect(redirect_to)
|
||||||
|
|
||||||
# If not logged in, log in
|
# If not logged in, log in
|
||||||
|
Loading…
Reference in New Issue
Block a user