feat: enhance logging for authentication events

This commit is contained in:
Lorenzo Venerandi
2026-03-09 17:54:47 +01:00
parent 40f1051d1f
commit 4442bcc406
2 changed files with 5 additions and 0 deletions

View File

@@ -258,6 +258,9 @@ def override_config_from_env(config: Config = None):
try:
field_type = config.__dataclass_fields__[field].type
env_value = os.environ[env_var]
# If password is overridden, it's no longer auto-generated
if field == "dashboard_password":
config.dashboard_password_generated = False
if field_type == int:
setattr(config, field, int(env_value))
elif field_type == float: