mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 12:30:15 +02:00
Add more detail to error message displayed on failed alt login.
This commit is contained in:
parent
bd8ef84862
commit
c558a980e1
@ -171,9 +171,12 @@ def sso_login(request, token):
|
|||||||
request.session['registration_uid'] = user.pk
|
request.session['registration_uid'] = user.pk
|
||||||
# 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.'))
|
|
||||||
# Logging in with an alt is not allowed due to security concerns.
|
# Logging in with an alt is not allowed due to security concerns.
|
||||||
token.delete()
|
token.delete()
|
||||||
|
messages.error(request,
|
||||||
|
_('Unable to authenticate as the selected character. '
|
||||||
|
'Please log in with the main character associated with this account.')
|
||||||
|
)
|
||||||
return redirect(settings.LOGIN_URL)
|
return redirect(settings.LOGIN_URL)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user