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:
@@ -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:
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user