More refactors

This commit is contained in:
lvrossem
2023-04-17 07:51:53 -06:00
parent 0bf764a0f4
commit 38eb9027d6
14 changed files with 142 additions and 89 deletions

View File

@@ -10,7 +10,7 @@ pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")
def check_empty_fields(username: str, password: str, avatar_index: int):
"Checks if any user fields are empty"
if avatar_index < 0:
if avatar_index < 0:
raise HTTPException(status_code=400, detail="No avatar was provided")
if len(username) == 0:
raise HTTPException(status_code=400, detail="No username was provided")