mirror of
				https://github.com/fastapi-users/fastapi-users.git
				synced 2025-11-01 01:48:46 +08:00 
			
		
		
		
	Use snake case for user_db variable 😱
This commit is contained in:
		| @ -61,7 +61,7 @@ class MockAuthentication(BaseAuthentication): | ||||
|         return {"token": user.id} | ||||
|  | ||||
|     async def authenticate(self, token: str) -> UserDB: | ||||
|         user = await self.userDB.get(token) | ||||
|         user = await self.user_db.get(token) | ||||
|         if user is None or not user.is_active: | ||||
|             raise HTTPException(status_code=status.HTTP_401_UNAUTHORIZED) | ||||
|         return user | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 François Voron
					François Voron