Use snake case for user_db variable 😱

This commit is contained in:
François Voron
2019-10-10 07:27:53 +02:00
parent 9f41a8b9a7
commit af63280cf7
4 changed files with 8 additions and 8 deletions

View File

@ -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