mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 20:27:22 +01:00
partial revert + change
This commit is contained in:
parent
88cec262cd
commit
a5a2ce7e34
10 changed files with 61 additions and 236 deletions
|
|
@ -166,8 +166,7 @@ public class DiscordBot : IHostedService
|
|||
while (!hasValidUid)
|
||||
{
|
||||
var uid = GenerateRandomString(10);
|
||||
if (await db.Users.AnyAsync(u => u.UID == uid).ConfigureAwait(false)) continue;
|
||||
if (await db.Aliases.AnyAsync(u => u.AliasUID == uid).ConfigureAwait(false)) continue;
|
||||
if (db.Users.Any(u => u.UID == uid)) continue;
|
||||
user.UID = uid;
|
||||
hasValidUid = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue