mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-13 14:30:17 +02:00
Delete tokens that can not be used for logins.
This commit is contained in:
parent
23a3dd1ab9
commit
bd8ef84862
@ -172,6 +172,8 @@ def sso_login(request, token):
|
||||
# Go to Step 2
|
||||
return redirect('registration_register')
|
||||
messages.error(request, _('Unable to authenticate as the selected character.'))
|
||||
# Logging in with an alt is not allowed due to security concerns.
|
||||
token.delete()
|
||||
return redirect(settings.LOGIN_URL)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user