mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 23:20:51 +00:00
Modify registration flow, add new flag into settings.py
* when ACTIVATE_AFTER_REGISTRATION set to True, user will be activated after registration, and no email sending; * when ACTIVATE_AFTER_REGISTRATION set to False, and REGISTRAION_SEND_EMAIL set to True, user will be activated by email; * when ACTIVATE_AFTER_REGISTRATION set to False, and REGISTRAION_SEND_EMAIL set to Flase, user will be activated by admin.
This commit is contained in:
@@ -113,8 +113,12 @@ AUTHENTICATION_BACKENDS = (
|
||||
|
||||
ACCOUNT_ACTIVATION_DAYS = 7
|
||||
|
||||
# this value should be false, since user will be activated after registration
|
||||
# since 0.9.2
|
||||
# Set to True when user will be activaed after registration,
|
||||
# and no email sending
|
||||
ACTIVATE_AFTER_REGISTRATION = True
|
||||
|
||||
# In order to use email sending,
|
||||
# ACTIVATE_AFTER_REGISTRATION MUST set to False
|
||||
REGISTRATION_SEND_MAIL = False
|
||||
|
||||
# seafile httpserver address and port
|
||||
|
Reference in New Issue
Block a user