hotfix and add button to edit user passport id

This commit is contained in:
Дмитрий Шиманский
2023-11-26 20:19:07 +03:00
parent 850f931666
commit ec69e22322
5 changed files with 339 additions and 11 deletions

View File

@@ -7,8 +7,8 @@ namespace DiscordApp.Utilities
public static void IdGenerator(out int id)
{
Random random = new();
id = random.Next(00001, 99999);
while (id.ToString().Length < 5) { id = random.Next(00001, 99999); }
id = random.Next(10000, 99999);
while (id.ToString().Length < 5) { id = random.Next(10000, 99999); }
return;
}
public static bool IsPassport(int id, out Passport passport)