mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-28 21:15:26 -05:00
security: delay server response whenever username is non existing (#1338)
* Delay server response whenever username is non existing * utilize hasher to achieve constant timing Co-authored-by: Hayden <64056131+hay-kot@users.noreply.github.com>
This commit is contained in:
@@ -49,6 +49,7 @@ class MealieAuthToken(BaseModel):
|
||||
|
||||
@public_router.post("/token")
|
||||
def get_token(data: CustomOAuth2Form = Depends(), session: Session = Depends(generate_session)):
|
||||
|
||||
email = data.username
|
||||
password = data.password
|
||||
|
||||
|
||||
Reference in New Issue
Block a user