mirror of
https://github.com/evennia/evennia.git
synced 2026-03-22 07:46:30 +01:00
Adding requirement for Evennia password
This commit is contained in:
parent
496508d473
commit
ec2a9c8c8f
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