diff --git a/apps/labrinth/src/routes/internal/pats.rs b/apps/labrinth/src/routes/internal/pats.rs index 8539f2596..818d1ca85 100644 --- a/apps/labrinth/src/routes/internal/pats.rs +++ b/apps/labrinth/src/routes/internal/pats.rs @@ -165,6 +165,10 @@ pub async fn edit_pat( redis: Data, session_queue: Data, ) -> Result { + info.0.validate().map_err(|err| { + ApiError::InvalidInput(validation_errors_to_string(err, None)) + })?; + let user = get_user_from_headers( &req, &**pool,