More code cleanup with a few bug fixes

This commit is contained in:
2022-11-30 19:41:57 +03:00
parent 0d3965d5d2
commit 6cd8091fde
9 changed files with 165 additions and 52 deletions

View File

@ -26,7 +26,13 @@ def check_password(passwd: str) -> bool:
def check_account(name: str, login: str, passwd: str) -> bool:
"""Runs checks for account name, login and password"""
return check_account_name(name) and check_login(login) and check_password(passwd)
return all(
(
check_account_name(name),
check_login(login),
check_password(passwd),
)
)
def check_gened_password(passwd: str, /) -> bool: