Commit 5979ca01 by Őry Máté

school: fix 664beaeb

parent 664beaeb
......@@ -35,11 +35,11 @@ def login(request):
messages.error(request, _('EduID is not available.'))
return redirect('/admin')
except User.DoesNotExist:
user = User(username=attr['niifPersonOrgID'])
user = User(username=request.META['niifPersonOrgID'])
user.set_unusable_password()
user.first_name = request.META['givenName']
user.last_name = request.META['sn']
user.email = attr['email']
user.email = request.META['email']
user.save()
user.backend = 'django.contrib.auth.backends.ModelBackend'
......
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