__author__ = 'matt'

from blockbuster import bb_dbconnector_factory


def credentials_are_valid(username, password):
    db = bb_dbconnector_factory.DBConnectorInterfaceFactory().create()
    print(username)
    result = db.api_username_exists(username)
    print (result)
    return result

__author__ = 'matt'

from blockbuster import bb_dbconnector_factory


def credentials_are_valid(username, password):
    db = bb_dbconnector_factory.DBConnectorInterfaceFactory().create()
    print(username)
    result = db.api_credentials_are_valid(username, password)
    print (result)
    return result

Update method to check both username and password
Update method to check both username and password

  __author__ = 'matt'
  
  from blockbuster import bb_dbconnector_factory
  
  
  def credentials_are_valid(username, password):
      db = bb_dbconnector_factory.DBConnectorInterfaceFactory().create()
      print(username)
-     result = db.api_username_exists(username)
+     result = db.api_credentials_are_valid(username, password)
      print (result)
      return result
  
Update method to check both username and password
## Code Before:
__author__ = 'matt'

from blockbuster import bb_dbconnector_factory


def credentials_are_valid(username, password):
    db = bb_dbconnector_factory.DBConnectorInterfaceFactory().create()
    print(username)
    result = db.api_username_exists(username)
    print (result)
    return result

## Instruction:
Update method to check both username and password
## Code After:
__author__ = 'matt'

from blockbuster import bb_dbconnector_factory


def credentials_are_valid(username, password):
    db = bb_dbconnector_factory.DBConnectorInterfaceFactory().create()
    print(username)
    result = db.api_credentials_are_valid(username, password)
    print (result)
    return result
