@gen.coroutine
def ValidateUserPassword(client, user, password):
  assert user is not None, 'user should exist in login case'
  if user.pwd_hash is None:
    raise PermissionError(_NO_PASSWORD_SET)

  # Salt must already exist.
  assert user.salt, user
  user_salt = user.salt.Decrypt()
  user_pwd_hash = user.pwd_hash.Decrypt()

  yield ValidatePassword(client, user.user_id, password, user_salt, user_pwd_hash)
Return the number of bytes allowed in an injected file path.
dataset/ETHPy150Open viewfinderco/viewfinder/backend/www/password_util.py/ValidateUserPassword--crossover with--dataset/ETHPy150Open nii-cloud/dodai-compute/nova/quota.py/allowed_injected_file_path_bytes