bank: auto-account passwords include pleasechangeme
Generated secrets keep a memorable core segment for demos.
This commit is contained in:
parent
763e5dc75a
commit
8318a590e9
1 changed files with 4 additions and 2 deletions
|
|
@ -129,9 +129,11 @@ def _rand_username() -> 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"
|
||||
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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue