Feat/new login (#8120)
Co-authored-by: douxc <douxc512@gmail.com> Co-authored-by: Garfield Dai <dai.hai@foxmail.com>
This commit is contained in:
parent
2c0eaaec3d
commit
4fd2743efa
24 changed files with 1027 additions and 292 deletions
|
|
@ -13,7 +13,7 @@ def valid_password(password):
|
|||
if re.match(pattern, password) is not None:
|
||||
return password
|
||||
|
||||
raise ValueError("Not a valid password.")
|
||||
raise ValueError("Password must contain letters and numbers, and the length must be greater than 8.")
|
||||
|
||||
|
||||
def hash_password(password_str, salt_byte):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue