Skip to content

Commit

Permalink
🐞 Fix Username Validation Issue (#238)
Browse files Browse the repository at this point in the history
Fixes #237
  • Loading branch information
YogeshUpdhyay committed Jun 19, 2022
1 parent 53b8341 commit 65b2643
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion authx/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def check_username(v: str) -> str:
raise ValueError("username special characters")
if v in WRONG_USERNAMES:
raise ValueError("username wrong")
if any(letter in ascii_letters for letter in v):
if any(letter not in ascii_letters for letter in v):
raise ValueError("username different letters")
return v

Expand Down

0 comments on commit 65b2643

Please sign in to comment.