Commit fdeaa2d6 by Őry Máté

Check for eduid args presence on login

parent 825f8c1e
......@@ -58,6 +58,9 @@ def logout(request):
def login(request):
attr, error = parse_attributes(request.META)
if not attr['niifPersonOrgID']:
messages.error(request, _('EduID is not available.'))
return redirect('/admin')
try:
user = User.objects.get(username=attr['niifPersonOrgID'])
except User.DoesNotExist:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment