diff 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
line wrap: on
line diff
--- a/src/twisted/plugins/libervia_server.py	Mon Feb 29 12:37:58 2016 +0100
+++ b/src/twisted/plugins/libervia_server.py	Mon Feb 29 12:40:14 2016 +0100
@@ -108,6 +108,7 @@
                        ['security_warning', 'w', True, _(u'Warn user that he is about to connect on HTTP.').encode('utf-8'), coerceBool],
                        ['passphrase', 'k', '', (_(u"Passphrase for the SàT profile named '%s'") % C.SERVICE_PROFILE).encode('utf-8'), str],
                        ['data_dir', 'd', DATA_DIR_DEFAULT, _(u'Data directory for Libervia').encode('utf-8'), coerceDataDir],
+                       ['allow_registration', '', True, _(u'Allow user to register new account').encode('utf-8'), coerceBool],
                       ]  # options which are in sat.conf and on command line, see https://twistedmatrix.com/documents/current/api/twisted.python.usage.Options.html
 # Options which are in sat.conf only
 OPT_PARAMETERS_CFG = [