From 340a53bf1946ca9fd900f1647be5d53ad8244fa7 Mon Sep 17 00:00:00 2001 From: honzapatCZ Date: Mon, 27 Apr 2026 19:17:57 +0200 Subject: [PATCH] Add formatting to key --- Models/ApiKey.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Models/ApiKey.cs b/Models/ApiKey.cs index 55609b1..283e481 100644 --- a/Models/ApiKey.cs +++ b/Models/ApiKey.cs @@ -5,6 +5,7 @@ using System.Text; using AspNetCore.Authentication.ApiKey; using AutoMapPropertyHelper; using NejCommon.Models; +using NejCommon.Validation; namespace NejCommon.Models; @@ -12,6 +13,7 @@ public partial class ApiKey : IApiKey { [AutoMapProperty("Response")] public string Id { get; set; } = NanoidDotNet.Nanoid.Generate(size: 64); + [StandardText] [AutoMapProperty("Request")] public string Name { get; set; } = null!; public byte[] LookupHash { get; set; } = null!;