async def METHOD_NAME(self, username: str, password: str) -> None:
    verify_authentication_enabled()
    if not password or len(password) < MIN_PASSWORD_LENGTH:
        raise exceptions.BadRequest("the password should be at least 8 characters long")
    # check if the user already exists
    user = await data.User.get_one(username=username)
    if not user:
        raise exceptions.NotFound(f"User with name {username} does not exist.")
    # hash the password
    pw_hash = nacl.pwhash.str(password.encode())
    # insert the user
    await user.update_fields(password_hash=pw_hash.decode())