Fix: Add Password Validation to Account Creation (#25382)
This commit is contained in:
parent
cce13750ad
commit
6574e9f0b2
2 changed files with 24 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue