mirror of
https://github.com/NovaOSS/nova-api.git
synced 2024-11-25 21:23:56 +01:00
Set default keygen infix
This commit is contained in:
parent
13416802cb
commit
735778d13f
|
@ -47,7 +47,7 @@ class UserManager:
|
||||||
async def create(self, discord_id: str = '') -> dict:
|
async def create(self, discord_id: str = '') -> dict:
|
||||||
chars = string.ascii_letters + string.digits
|
chars = string.ascii_letters + string.digits
|
||||||
|
|
||||||
infix = os.getenv('KEYGEN_INFIX')
|
infix = os.getenv('KEYGEN_INFIX', 'S3LFH0ST')
|
||||||
suffix = ''.join(random.choices(chars, k=20))
|
suffix = ''.join(random.choices(chars, k=20))
|
||||||
prefix = ''.join(random.choices(chars, k=20))
|
prefix = ''.join(random.choices(chars, k=20))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue