diff options
author | Rodney Ewing <ewing.rj@gmail.com> | 2013-07-08 17:34:18 -0700 |
---|---|---|
committer | Rodney Ewing <ewing.rj@gmail.com> | 2013-08-16 10:28:49 -0700 |
commit | 229f0bd8fb69463876be274598224150c7aff387 (patch) | |
tree | 1d5e4c2bda55ffce5d00f1e8c9f0c4ca23c7893f /mediagoblin | |
parent | 36f901fbbd68479a911058f4ec3b9717e81e2b92 (diff) | |
download | mediagoblin-229f0bd8fb69463876be274598224150c7aff387.tar.lz mediagoblin-229f0bd8fb69463876be274598224150c7aff387.tar.xz mediagoblin-229f0bd8fb69463876be274598224150c7aff387.zip |
fixed typo to check allow_registration not if auth is enabled
Diffstat (limited to 'mediagoblin')
-rw-r--r-- | mediagoblin/plugins/openid/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/plugins/openid/views.py b/mediagoblin/plugins/openid/views.py index b639a4cb..bb2de7ab 100644 --- a/mediagoblin/plugins/openid/views.py +++ b/mediagoblin/plugins/openid/views.py @@ -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 |