mirror of
https://github.com/Govor-team/Govor.git
synced 2026-11-18 13:24:59 +00:00
Add secure admin-key invitation endpoint
Adds a new invitation creation endpoint that requires a configured admin key before generating an invitation code. The controller now reads the expected key from configuration, returns 503 when it is missing, and rejects invalid attempts with 401. This also includes the request contract for the admin-key payload.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
namespace Govor.Contracts.Requests;
|
||||
|
||||
public class CreateInvitationWithKeyRequest
|
||||
{
|
||||
public DateTime EndDate { get; set; }
|
||||
public int MaxParticipants { get; set; }
|
||||
public bool IsAdmin { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string AdminKey { get; set; } = string.Empty;
|
||||
}
|
||||
Reference in New Issue
Block a user