diff --git a/DysonNetwork.Sphere/Publisher/PublisherController.cs b/DysonNetwork.Sphere/Publisher/PublisherController.cs index 5cdbebd..1b1ebef 100644 --- a/DysonNetwork.Sphere/Publisher/PublisherController.cs +++ b/DysonNetwork.Sphere/Publisher/PublisherController.cs @@ -329,6 +329,8 @@ public class PublisherController( public async Task> CreatePublisherOrganization(string realmSlug, [FromBody] PublisherRequest request) { + if (string.IsNullOrEmpty(request.Name) || string.IsNullOrEmpty(request.Nick)) + return BadRequest("Name and Nick are required."); if (HttpContext.Items["CurrentUser"] is not Account currentUser) return Unauthorized(); var realm = await db.Realms.FirstOrDefaultAsync(r => r.Slug == realmSlug);