Fix: Add Password Validation to Account Creation (#25382)

This commit is contained in:
Newton José 2025-09-09 21:58:39 -03:00 • committed by GitHub
commit 6574e9f0b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 24 additions and 0 deletions

View file

@ -246,6 +246,8 @@ class AccountService:
account.name = name
if password:
valid_password(password)
# generate password salt
salt = secrets.token_bytes(16)
base64_salt = base64.b64encode(salt).decode()