mirror of
				https://github.com/avatao-content/test-tutorial-framework
				synced 2025-10-31 11:32:55 +00:00 
			
		
		
		
	Fix webservice authentication bug caused by pylint streak
This commit is contained in:
		| @@ -27,12 +27,10 @@ class UserOps: | |||||||
|             User.username == self.username |             User.username == self.username | ||||||
|         ).first() |         ).first() | ||||||
|  |  | ||||||
|         passw_is_correct = PasswordHasher.verify( |         if not user or not PasswordHasher.verify( | ||||||
|             self.password, |                 self.password, | ||||||
|             user.passwordhash |                 user.passwordhash | ||||||
|         ) |         ): | ||||||
|  |  | ||||||
|         if not user or not passw_is_correct: |  | ||||||
|             self.log(f'Invalid credentials for user "{self.username}"!') |             self.log(f'Invalid credentials for user "{self.username}"!') | ||||||
|             raise InvalidCredentialsError |             raise InvalidCredentialsError | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user