diff --git a/solvable/src/webservice/user_ops.py b/solvable/src/webservice/user_ops.py index c9107a6..f40087d 100644 --- a/solvable/src/webservice/user_ops.py +++ b/solvable/src/webservice/user_ops.py @@ -27,12 +27,10 @@ class UserOps: User.username == self.username ).first() - passw_is_correct = PasswordHasher.verify( - self.password, - user.passwordhash - ) - - if not user or not passw_is_correct: + if not user or not PasswordHasher.verify( + self.password, + user.passwordhash + ): self.log(f'Invalid credentials for user "{self.username}"!') raise InvalidCredentialsError