fixup nanoid
This commit is contained in:
parent
61709a7774
commit
a07b5dbc99
|
|
@ -12,7 +12,7 @@ namespace NejCommon.Models;
|
|||
public partial class ApiKey : IApiKey
|
||||
{
|
||||
[AutoMapProperty("Response")]
|
||||
public string Id { get; set; } = NanoidDotNet.Nanoid.Generate(size: 64);
|
||||
public string Id { get; set; } = Nanoid.Nanoid.Generate(size: 64);
|
||||
[StandardText]
|
||||
[AutoMapProperty("Request")]
|
||||
public string Name { get; set; } = null!;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
using AspNetCore.Authentication.ApiKey;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using NanoidDotNet;
|
||||
using NejCommon.Models;
|
||||
|
||||
namespace NejCommon.Services;
|
||||
|
|
@ -39,5 +38,5 @@ public partial class ApiKeyProvider : IApiKeyProvider, IScopedService
|
|||
}
|
||||
}
|
||||
|
||||
public static string GenerateKey() => "nej-" + Nanoid.Generate(size: 256);
|
||||
public static string GenerateKey() => "nej-" + Nanoid.Nanoid.Generate(size: 256);
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user