From 739e0dae61380165a5458e516c16dc3d9113a106 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 14 Oct 2019 18:51:08 +0200 Subject: [PATCH] ship settings to disable registration (they were previously in settings.json) --- debian/50gnm.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/debian/50gnm.py b/debian/50gnm.py index b12f628..d34c744 100644 --- a/debian/50gnm.py +++ b/debian/50gnm.py @@ -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