bank: auto-account passwords include pleasechangeme

Generated secrets keep a memorable core segment for demos.
This commit is contained in:
Hernâni Marques 2026-07-10 15:20:00 +02:00
parent 763e5dc75a
commit 8318a590e9
No known key found for this signature in database

View file

@ -129,9 +129,11 @@ def _rand_username() -> str:
def _rand_password() -> str: def _rand_password() -> str:
# readable enough to type; no ambiguous 0/O/1/l # Always embed "pleasechangeme" so users know to set their own later.
# Suffix: readable, no ambiguous 0/O/1/l.
alphabet = "ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz23456789" alphabet = "ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz23456789"
return "".join(secrets.choice(alphabet) for _ in range(14)) suffix = "".join(secrets.choice(alphabet) for _ in range(8))
return "pleasechangeme" + suffix
def create_personal_account() -> dict: def create_personal_account() -> dict: