def METHOD_NAME(user: User, value: str) -> None:
    if not value:
        raise AdcmEx(code="USER_UPDATE_ERROR", msg="Password could not be empty")
    if value is Empty or user.check_password(value):
        return
    user.set_password(value)
    _regenerate_token(user)