]> git.openstreetmap.org Git - osqa.git/blobdiff - forum_modules/localauth/views.py
Converts the temp login email to the new style, and makes some more enahncements...
[osqa.git] / forum_modules / localauth / views.py
index 6416feea555affde9901ebddad2dce921ab7ff31..4392c5a939837cf078c4335dfef0333a60fb4a3e 100644 (file)
@@ -23,6 +23,7 @@ def register(request):
 
             if User.objects.all().count() == 0:
                 user_.is_superuser = True
 
             if User.objects.all().count() == 0:
                 user_.is_superuser = True
+                user_.is_staff = True
 
             user_.save()
             UserJoinsAction(user=user_, ip=request.META['REMOTE_ADDR']).save()
 
             user_.save()
             UserJoinsAction(user=user_, ip=request.META['REMOTE_ADDR']).save()