1
0
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:
xiez
2012-04-21 13:58:55 +08:00
parent 00f9575c74
commit 325d39a288
3 changed files with 28 additions and 12 deletions

View File

@@ -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