fixed typo to check allow_registration not if auth is enabled

This commit is contained in:
Rodney Ewing 2013-07-08 17:34:18 -07:00
parent 36f901fbbd
commit 229f0bd8fb

View 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