mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-13 13:12:42 +00:00
Implement an authentication backend that will look up the user in the old
community login system in case it's not present in the django auth one, and if necessary create the object in the django one.
This commit is contained in:
@ -80,6 +80,10 @@ LOGIN_URL='/account/login/'
|
||||
LOGIN_REDIRECT_URL='/account/'
|
||||
LOGOUT_URL='/account/logout/'
|
||||
|
||||
AUTHENTICATION_BACKENDS = (
|
||||
'util.auth.AuthBackend',
|
||||
)
|
||||
|
||||
INSTALLED_APPS = [
|
||||
'django.contrib.auth',
|
||||
'django.contrib.contenttypes',
|
||||
|
Reference in New Issue
Block a user