mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-16 07:08:55 +00:00
Using ccnet EmailUser table instead of seahub auth_user table.
* Rewrite auth module, change user to emailuser. * Remove site app, and remove EmailOrUsernameModelBackend.
This commit is contained in:
@@ -65,7 +65,7 @@ MIDDLEWARE_CLASSES = (
|
||||
'django.middleware.csrf.CsrfViewMiddleware',
|
||||
'django.middleware.csrf.CsrfResponseMiddleware',
|
||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
||||
'auth.middleware.AuthenticationMiddleware',
|
||||
'seahub.base.middleware.UseridMiddleware',
|
||||
)
|
||||
|
||||
@@ -93,11 +93,11 @@ TEMPLATE_CONTEXT_PROCESSORS = (
|
||||
|
||||
|
||||
INSTALLED_APPS = (
|
||||
'django.contrib.auth',
|
||||
'auth',
|
||||
'django.contrib.contenttypes',
|
||||
'django.contrib.sessions',
|
||||
'django.contrib.sites',
|
||||
'django.contrib.admin',
|
||||
# 'django.contrib.admin',
|
||||
'registration',
|
||||
# 'avatar',
|
||||
'seahub.base',
|
||||
@@ -108,8 +108,7 @@ INSTALLED_APPS = (
|
||||
)
|
||||
|
||||
AUTHENTICATION_BACKENDS = (
|
||||
'seahub.base.accounts.EmailOrUsernameModelBackend',
|
||||
'django.contrib.auth.backends.ModelBackend'
|
||||
'auth.backends.ModelBackend',
|
||||
)
|
||||
|
||||
ACCOUNT_ACTIVATION_DAYS = 7
|
||||
|
Reference in New Issue
Block a user