fixed typo to check allow_registration not if auth is enabled
authorRodney Ewing <ewing.rj@gmail.com>
Tue, 9 Jul 2013 00:34:18 +0000 (17:34 -0700)
committerRodney Ewing <ewing.rj@gmail.com>
Fri, 16 Aug 2013 17:28:49 +0000 (10:28 -0700)
mediagoblin/plugins/openid/views.py

index b639a4cb31744c68ba49efc523a1e12b20bd0364..bb2de7ab2efdd1b4d52d6fbed039f1f329aca7e3 100644 (file)
@@ -195,11 +195,11 @@ def finish_login(request):
             return redirect(request, "index")
     else:
         # No user, need to register
-        if not mg_globals.app.auth:
+        if not mg_globals.app_config['allow_registration']:
             messages.add_message(
                 request,
                 messages.WARNING,
-                _('Sorry, authentication is disabled on this instance.'))
+                _('Sorry, registration is disabled on this instance.'))
             return redirect(request, 'index')
 
         # Get email and nickname from response