# HG changeset patch # User Goffi # Date 1451137005 -3600 # Node ID cf1812a4445ea6fd6cce2ee1b8bd48b4c683ac80 # Parent 0fd4b81972c036346101dd0186d849efedadea91 server: fixed empty_password_allowed_warning_dangerous_list option diff -r 0fd4b81972c0 -r cf1812a4445e src/server/server.py --- a/src/server/server.py Sat Dec 26 14:17:29 2015 +0100 +++ b/src/server/server.py Sat Dec 26 14:36:45 2015 +0100 @@ -837,7 +837,7 @@ request.finish() return else: - if profile != login_jid.full() or (not password and profile not in self.sat_host.empty_password_allowed_warning_dangerous_list): + if profile != login_jid.full() or (not password and profile not in self.sat_host.options['empty_password_allowed_warning_dangerous_list']): # profiles with empty passwords are restricted to local frontends request.write(C.PROFILE_AUTH_ERROR) request.finish() diff -r 0fd4b81972c0 -r cf1812a4445e src/twisted/plugins/libervia_server.py --- a/src/twisted/plugins/libervia_server.py Sat Dec 26 14:17:29 2015 +0100 +++ b/src/twisted/plugins/libervia_server.py Sat Dec 26 14:36:45 2015 +0100 @@ -125,6 +125,8 @@ except (ConfigParser.NoSectionError, ConfigParser.NoOptionError): pass usage.Options.__init__(self) + for opt_data in OPT_PARAMETERS_CFG: + self[opt_data[0]] = opt_data[2] def handleDeprecated(self, config_parser): """display warning and/or change option when a deprecated option if found