Mercurial > libervia-web
comparison src/twisted/plugins/libervia_server.py @ 871:54f6c5b86a87
server, browser: new "allow_registration" option to enable/disable new account registration through Liberia interface
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 29 Feb 2016 12:40:14 +0100 |
parents | a05f3b24f2ec |
children | 6bdee34fa2f4 |
comparison
equal
deleted
inserted
replaced
870:a05f3b24f2ec | 871:54f6c5b86a87 |
---|---|
106 ['tls_chain', '', '', _(u'TLS certificate intermediate chain (PEM format)').encode('utf-8'), str], | 106 ['tls_chain', '', '', _(u'TLS certificate intermediate chain (PEM format)').encode('utf-8'), str], |
107 ['redirect_to_https', 'r', True, _(u'Automatically redirect from HTTP to HTTPS.').encode('utf-8'), coerceBool], | 107 ['redirect_to_https', 'r', True, _(u'Automatically redirect from HTTP to HTTPS.').encode('utf-8'), coerceBool], |
108 ['security_warning', 'w', True, _(u'Warn user that he is about to connect on HTTP.').encode('utf-8'), coerceBool], | 108 ['security_warning', 'w', True, _(u'Warn user that he is about to connect on HTTP.').encode('utf-8'), coerceBool], |
109 ['passphrase', 'k', '', (_(u"Passphrase for the SàT profile named '%s'") % C.SERVICE_PROFILE).encode('utf-8'), str], | 109 ['passphrase', 'k', '', (_(u"Passphrase for the SàT profile named '%s'") % C.SERVICE_PROFILE).encode('utf-8'), str], |
110 ['data_dir', 'd', DATA_DIR_DEFAULT, _(u'Data directory for Libervia').encode('utf-8'), coerceDataDir], | 110 ['data_dir', 'd', DATA_DIR_DEFAULT, _(u'Data directory for Libervia').encode('utf-8'), coerceDataDir], |
111 ['allow_registration', '', True, _(u'Allow user to register new account').encode('utf-8'), coerceBool], | |
111 ] # options which are in sat.conf and on command line, see https://twistedmatrix.com/documents/current/api/twisted.python.usage.Options.html | 112 ] # options which are in sat.conf and on command line, see https://twistedmatrix.com/documents/current/api/twisted.python.usage.Options.html |
112 # Options which are in sat.conf only | 113 # Options which are in sat.conf only |
113 OPT_PARAMETERS_CFG = [ | 114 OPT_PARAMETERS_CFG = [ |
114 ['empty_password_allowed_warning_dangerous_list', None, '', None], | 115 ['empty_password_allowed_warning_dangerous_list', None, '', None], |
115 ['url_redirections_profile', None, '', None], | 116 ['url_redirections_profile', None, '', None], |