fixed typo to check allow_registration not if auth is enabled
This commit is contained in:
parent
36f901fbbd
commit
229f0bd8fb
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user