ship settings to disable registration

(they were previously in settings.json)
This commit is contained in:
Frédéric Péters 2019-10-14 18:51:08 +02:00
parent 7278ed42f3
commit 739e0dae61
1 changed files with 10 additions and 0 deletions

10
debian/50gnm.py vendored
View File

@ -1,2 +1,12 @@
# disable local registration
REGISTRATION_OPEN = False
A2_EMAIL_IS_UNIQUE = False
A2_AUTH_PASSWORD_ENABLE = True
A2_REGISTRATION_CAN_CHANGE_PASSWORD = True
A2_PROFILE_CAN_CHANGE_EMAIL = False
A2_PROFILE_CAN_EDIT_PROFILE = False
A2_CAN_RESET_PASSWORD = None
A2_REGISTRATION_CAN_DELETE_ACCOUNT = False
# set session age to the CUT "remember me" value
SESSION_COOKIE_AGE = 3600 * 24 * 30