📝 chore(manager.py): update variable names for superuser in database manager and utils module for better clarity and consistency

The variable names `FIRST_SUPERUSER` and `FIRST_SUPERUSER_PASSWORD` have been changed to `SUPERUSER` and `SUPERUSER_PASSWORD` respectively in the `manager.py` and `utils.py` files. This change improves clarity and consistency in the codebase.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-09-18 15:45:40 -03:00
commit 94020b3126
2 changed files with 2 additions and 2 deletions

View file

@ -166,7 +166,7 @@ class DatabaseManager(Service):
try:
settings_manager = get_settings_manager()
# remove the default superuser if auto_login is enabled
# using the FIRST_SUPERUSER to get the user
# using the SUPERUSER to get the user
if settings_manager.auth_settings.AUTO_LOGIN:
logger.debug("Removing default superuser")
username = settings_manager.auth_settings.SUPERUSER

View file

@ -11,7 +11,7 @@ def setup_superuser():
"""
Setup the superuser.
"""
# We will use the FIRST_SUPERUSER and FIRST_SUPERUSER_PASSWORD
# We will use the SUPERUSER and SUPERUSER_PASSWORD
# vars on settings_manager.auth_settings to create the superuser
# if it does not exist.
settings_manager = get_settings_manager()