(self, con, data)
return True
Process the incoming request; logs the
            username/password and denies access
Process the incoming request; logs the
            username/password and denies access
Process the incoming request ; logs the username / password and denies access
def process_com(self, con, data):
        """ Process the incoming request; logs the
            username/password and denies access
        """
        cmd = data.split(' ')[0].strip()
        if cmd == 'USER':
            usr = data.split(' ')[1]
            if usr is None:
                self.response(con, 503, 'Incorrect username.')
            self.usr = usr.rstrip()
            self.response(con, 331, 'Specify password.')
        elif cmd == 'PASS':
            psswd = data.split(' ')[1]
            if psswd is None:
                self.response(con, 503, 'Incorrect password.')
            self.pwd = psswd.rstrip()
            self.response(con, 530, 'Incorrect credentials')
            return False
        else:
            self.response(con, 530, 'Please login first.')
            return False
        return True
def process_com ( self , con , data ) : cmd = data . split ( ' ' ) [ 0 ] . strip ( ) if cmd == 'USER' : usr = data . split ( ' ' ) [ 1 ] if usr is None : self . response ( con , 503 , 'Incorrect username.' ) self . usr = usr . rstrip ( ) self . response ( con , 331 , 'Specify password.' ) elif cmd == 'PASS' : psswd = data . split ( ' ' ) [ 1 ] if psswd is None : self . response ( con , 503 , 'Incorrect password.' ) self . pwd = psswd . rstrip ( ) self . response ( con , 530 , 'Incorrect credentials' ) return False else : self . response ( con , 530 , 'Please login first.' ) return False return True