This commit is contained in:
CakeAndBanana
2025-09-25 18:14:49 +02:00
parent f084837e01
commit e470e5346a

View File

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