diff options
author | Magnus Hagander | 2018-12-06 14:09:22 +0000 |
---|---|---|
committer | Magnus Hagander | 2018-12-12 02:11:57 +0000 |
commit | e88dc861fde163d0803ab8f03a2bb45333a9a37a (patch) | |
tree | 97e48f5b04b322c9c5447d00c4082851ec371579 /postgresqleu/auth.py | |
parent | 825c34a6ecfeb7eb6b7f799d4705a3bbf4e5f776 (diff) |
Make pg community auth optional
Adds very basic support for running without pg community auth.
No support for signup, password change, or anything like that yet, but
at least users can be managed in /admin/ for dev environments.
Diffstat (limited to 'postgresqleu/auth.py')
-rw-r--r-- | postgresqleu/auth.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/postgresqleu/auth.py b/postgresqleu/auth.py index 1cc094fb..881df3ec 100644 --- a/postgresqleu/auth.py +++ b/postgresqleu/auth.py @@ -48,11 +48,6 @@ class AuthBackend(ModelBackend): # Handle login requests by sending them off to the main site def login(request): - if not hasattr(settings, 'PGAUTH_REDIRECT'): - # No pgauth installed, so allow local installs. - from django.contrib.auth.views import login - return login(request, template_name='admin.html') - if request.GET.has_key('next'): # Put together an url-encoded dict of parameters we're getting back, # including a small nonce at the beginning to make sure it doesn't |