mirror of
https://github.com/evennia/evennia.git
synced 2026-03-21 07:16:31 +01:00
Adding requirement for Evennia password
This commit is contained in:
parent
95bd3a18da
commit
ddbbf8b5c5
1 changed files with 1 additions and 1 deletions
|
|
@ -1424,7 +1424,7 @@ def create_superuser():
|
|||
"account of the server. Email is optional and can be empty.\n"
|
||||
)
|
||||
from os import environ
|
||||
if "EVENNIA_SUPERUSER_USERNAME" in environ:
|
||||
if ("EVENNIA_SUPERUSER_USERNAME" in environ) and ("EVENNIA_SUPERUSER_PASSWORD" in environ):
|
||||
from evennia.accounts.models import AccountDB
|
||||
superuser = AccountDB.objects.create_superuser(os.environ.get('EVENNIA_SUPERUSER_USERNAME'),
|
||||
os.environ.get('EVENNIA_SUPERUSER_EMAIL'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue