projects
/
mediagoblin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36f901f
)
fixed typo to check allow_registration not if auth is enabled
author
Rodney Ewing
<ewing.rj@gmail.com>
Tue, 9 Jul 2013 00:34:18 +0000
(17:34 -0700)
committer
Rodney Ewing
<ewing.rj@gmail.com>
Fri, 16 Aug 2013 17:28:49 +0000
(10:28 -0700)
mediagoblin/plugins/openid/views.py
patch
|
blob
|
blame
|
history
diff --git
a/mediagoblin/plugins/openid/views.py
b/mediagoblin/plugins/openid/views.py
index b639a4cb31744c68ba49efc523a1e12b20bd0364..bb2de7ab2efdd1b4d52d6fbed039f1f329aca7e3 100644
(file)
--- 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,
authentic
ation is disabled on this instance.'))
+ _('Sorry,
registr
ation is disabled on this instance.'))
return redirect(request, 'index')
# Get email and nickname from response