Skip to content

Commit

Permalink
Fixes the print of root's password
Browse files Browse the repository at this point in the history
  • Loading branch information
gcandal committed Nov 9, 2020
1 parent 9b22442 commit 1f9b54a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/appier_extras/parts/admin/models/account.py
Expand Up @@ -209,13 +209,12 @@ def setup(cls):
# creates the structure to be used as the root account description
# using the default value and then stores the account as it's going
# to be used as the default root entity (for administration)
password = appier.conf("ADMIN_PASSWORD", cls.ROOT_PASSWORD)
account = cls(
enabled = True,
username = cls.ROOT_USERNAME,
email = cls.ROOT_EMAIL,
password = cls.generate(
appier.conf("ADMIN_PASSWORD", cls.ROOT_PASSWORD)
),
password = cls.generate(password),
type = cls.ADMIN_TYPE
)
account.save(validate = False)
Expand All @@ -224,7 +223,7 @@ def setup(cls):
# uses it to print information about the newly created account
account = cls.get(id = account.id, rules = False)
logger.info("Username: %s" % account.username)
logger.info("Password: %s" % cls.ROOT_PASSWORD)
logger.info("Password: %s" % password)
logger.info("Secret Key: %s" % account.key)

@classmethod
Expand Down

0 comments on commit 1f9b54a

Please sign in to comment.