From 882a7f7bfbc7dc17e4fda9a3129e47f660fb696c Mon Sep 17 00:00:00 2001 From: lxnay Date: Mon, 30 Jun 2008 19:16:08 +0000 Subject: [PATCH] Entropy/SocketHostInterface/Repository Daemon: - fix docmd_login arguments length git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2210 cd1c1023-2f26-0410-ae45-c471fc1f0318 --- libraries/entropy.py | 7 +++---- server/entropy-repository-daemon | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/libraries/entropy.py b/libraries/entropy.py index 4a30ef959..76a6098b7 100644 --- a/libraries/entropy.py +++ b/libraries/entropy.py @@ -12406,10 +12406,9 @@ class SocketHostInterface: if not arguments or (len(arguments) != 3): return False,None,None,'wrong arguments' - #ip_address = arguments[0] - user = arguments[1] - auth_type = arguments[2] - auth_string = arguments[3] + user = arguments[0] + auth_type = arguments[1] + auth_string = arguments[2] # check auth type validity if auth_type not in self.valid_auth_types: diff --git a/server/entropy-repository-daemon b/server/entropy-repository-daemon index e0b23cb39..fa04ed3f4 100644 --- a/server/entropy-repository-daemon +++ b/server/entropy-repository-daemon @@ -58,8 +58,8 @@ class phpbb3Authenticator(phpBB3AuthInterface): session_data = self.HostInterface.sessions.get(self.session) if session_data: ip_address = session_data.get('ip_address') - user = arguments[1] - password = arguments[2] + user = arguments[0] + password = arguments[1] if ip_address: if self._is_ip_banned(ip_address):