Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ async def lifespan(app: FastAPI):
Lifespan context manager for the FastAPI application.
Handles startup and shutdown events.
"""
# Ensure password verification file exists
if BackendAPISecurity.new_password_required():
# Create secrets manager with CONFIG_PASSWORD
secrets_manager = ETHKeyFileSecretManger(password=settings.security.config_password)
# Ensure password verification file exists and is valid
secrets_manager = ETHKeyFileSecretManger(password=settings.security.config_password)
if BackendAPISecurity.new_password_required() \
or not BackendAPISecurity.validate_password(secrets_manager):
BackendAPISecurity.store_password_verification(secrets_manager)
logging.info("Created password verification file for master_account")

Expand Down