From 735778d13f904f420c1282869ae14b6e2a5cb4f1 Mon Sep 17 00:00:00 2001 From: nsde Date: Sun, 20 Aug 2023 14:07:49 +0200 Subject: [PATCH] Set default keygen infix --- api/db/users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/db/users.py b/api/db/users.py index af0a468..6a786af 100644 --- a/api/db/users.py +++ b/api/db/users.py @@ -47,7 +47,7 @@ class UserManager: async def create(self, discord_id: str = '') -> dict: chars = string.ascii_letters + string.digits - infix = os.getenv('KEYGEN_INFIX') + infix = os.getenv('KEYGEN_INFIX', 'S3LFH0ST') suffix = ''.join(random.choices(chars, k=20)) prefix = ''.join(random.choices(chars, k=20))