mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-04 06:06:19 +01:00
Delete tokens that can not be used for logins.
This commit is contained in:
@@ -172,6 +172,8 @@ def sso_login(request, token):
|
|||||||
# Go to Step 2
|
# Go to Step 2
|
||||||
return redirect('registration_register')
|
return redirect('registration_register')
|
||||||
messages.error(request, _('Unable to authenticate as the selected character.'))
|
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)
|
return redirect(settings.LOGIN_URL)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user