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
This commit is contained in:
lxnay
2008-06-30 19:16:08 +00:00
parent 216ff1f3e2
commit 882a7f7bfb
2 changed files with 5 additions and 6 deletions
+3 -4
View File
@@ -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:
+2 -2
View File
@@ -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):