From c558a980e16d8a23ba2d0a1f57e0762978c4c0e7 Mon Sep 17 00:00:00 2001 From: colcrunch Date: Mon, 11 Dec 2023 18:14:09 -0500 Subject: [PATCH] Add more detail to error message displayed on failed alt login. --- allianceauth/authentication/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/allianceauth/authentication/views.py b/allianceauth/authentication/views.py index 2a06f11c..ddb43eb1 100644 --- a/allianceauth/authentication/views.py +++ b/allianceauth/authentication/views.py @@ -171,9 +171,12 @@ def sso_login(request, token): request.session['registration_uid'] = user.pk # 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() + 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)