mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-04 16:31:13 +00:00
Enable LOGIN_URL to be configured
This commit is contained in:
@@ -217,8 +217,8 @@ CONSTANCE_DATABASE_CACHE_BACKEND = 'default'
|
|||||||
AUTHENTICATION_BACKENDS = (
|
AUTHENTICATION_BACKENDS = (
|
||||||
'seahub.base.accounts.AuthBackend',
|
'seahub.base.accounts.AuthBackend',
|
||||||
)
|
)
|
||||||
|
|
||||||
LOGIN_REDIRECT_URL = '/profile/'
|
LOGIN_REDIRECT_URL = '/profile/'
|
||||||
|
LOGIN_URL = SITE_ROOT + 'accounts/login'
|
||||||
|
|
||||||
ACCOUNT_ACTIVATION_DAYS = 7
|
ACCOUNT_ACTIVATION_DAYS = 7
|
||||||
|
|
||||||
@@ -608,10 +608,6 @@ if 'win32' in sys.platform:
|
|||||||
fp.write("%d\n" % os.getpid())
|
fp.write("%d\n" % os.getpid())
|
||||||
fp.close()
|
fp.close()
|
||||||
|
|
||||||
# Put here after loading other settings files if `SITE_ROOT` is modified in
|
|
||||||
# other settings files.
|
|
||||||
LOGIN_URL = SITE_ROOT + 'accounts/login'
|
|
||||||
|
|
||||||
INNER_FILE_SERVER_ROOT = 'http://127.0.0.1:' + FILE_SERVER_PORT
|
INNER_FILE_SERVER_ROOT = 'http://127.0.0.1:' + FILE_SERVER_PORT
|
||||||
|
|
||||||
CONSTANCE_CONFIG = {
|
CONSTANCE_CONFIG = {
|
||||||
|
Reference in New Issue
Block a user