Skip to content

Commit

Permalink
Fix issue where username checks were case sensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
adullage committed Aug 23, 2022
1 parent 39c8306 commit 3312aec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flatnotes/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
@app.post("/api/token")
async def token(data: LoginModel):
if (
data.username != FLATNOTES_USERNAME
data.username.lower() != FLATNOTES_USERNAME.lower()
or data.password != FLATNOTES_PASSWORD
):
raise HTTPException(
Expand Down

0 comments on commit 3312aec

Please sign in to comment.