def login(request, **credentials):
  """
  If the given credentials are valid, return a User object.
  """
  backend = local.app.auth_backend
  try:
    user = backend.login(request, **credentials)
  except __HOLE__:
    # This backend doesn't accept these credentials as arguments.
    # Try the next one.
    pass
  return user or False
dataset/ETHPy150Open IanLewis/kay/kay/auth/__init__.py/login