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):