':return: True if this is a login form.'

def is_login_form(self):

    (text, passwd, other) = self.get_parameter_type_count()
    if ((text == 1) and (passwd == 1)):
        return True
    elif ((text == 0) and (passwd == 1)):
        return True
    return False
