Closed Xiphoseer closed 10 months ago
remove the Optional() validator, which makes empty strings pass validation and fail later because the empty string is no valid key. Instead just rely on the fact that validate_play_key will never fail if REQUIRE_PLAY_KEY is not set.
Optional()
validate_play_key
REQUIRE_PLAY_KEY
remove the
Optional()
validator, which makes empty strings pass validation and fail later because the empty string is no valid key. Instead just rely on the fact thatvalidate_play_key
will never fail ifREQUIRE_PLAY_KEY
is not set.