Skip to content

Commit

Permalink
fix some func names
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros-k committed Apr 10, 2024
1 parent aff51c6 commit cd92af3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions cspell.config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
words:
- CPUS
- Healtcheck
- isready
4 changes: 2 additions & 2 deletions library/common/validations.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def filter_is_email(email):
return re.match(r"[^@]+@[^@]+\.[^@]+", email)

def filter_must_be_email(email):
if not is_email(email):
if not filter_is_email(email):
raise ValueError("must be an email address")

return email
Expand All @@ -28,7 +28,7 @@ def filter_is_password_secure(password):
return all(c(password) for c in checks)

def filter_must_be_password_secure(password):
if not is_password_secure(password):
if not filter_is_password_secure(password):
raise ValueError("password must contain at least 8 characters, 1 uppercase letter, 1 lowercase letter, 1 number, and 1 special character")

return password

0 comments on commit cd92af3

Please sign in to comment.