Endpoints changed and added for Groups #7

Merged
cake merged 19 commits from endpoints_groups into 1.12.0-server 2025-09-25 16:03:17 +00:00
Showing only changes of commit 39aded4fb7 - Show all commits

View File

@@ -161,11 +161,11 @@ public partial class LightlessHub
}
var gid = StringUtils.GenerateRandomString(12);
while (await DbContext.Groups.AnyAsync(g => g.GID == "MSS-" + gid, cancellationToken: _contextAccessor.HttpContext.RequestAborted).ConfigureAwait(false))
while (await DbContext.Groups.AnyAsync(g => g.GID == "LSS-" + gid, cancellationToken: _contextAccessor.HttpContext.RequestAborted).ConfigureAwait(false))
{
gid = StringUtils.GenerateRandomString(12);
}
gid = "MSS-" + gid;
gid = "LSS-" + gid;
var passwd = StringUtils.GenerateRandomString(16);
using var sha = SHA256.Create();