Skip to content

Commit

Permalink
hotfix logic error on auth
Browse files Browse the repository at this point in the history
  • Loading branch information
nmluci committed Dec 16, 2021
1 parent 708cdbc commit 74a7b97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/auth/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def verifyUserCredentials(metadata: SignInModel) -> bool:
if not usr:
return False
else:
return (usr.username != metadata.username) or (usr.password != uniquify(metadata.password, 20))
return (usr.username == metadata.username) and (int(usr.password) == uniquify(metadata.password, 10))

def registerUser(metadata: SignUpModel):
plaintext = f"{metadata.username}:{metadata.password}"
Expand Down

0 comments on commit 74a7b97

Please sign in to comment.