More code cleanup with a few bug fixes
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user