Rename login function to login_app for clarity and consistency
Browse files
main.py
CHANGED
@@ -210,7 +210,7 @@ def index() -> FileResponse:
|
|
210 |
return FileResponse(path=str(file_path), media_type="text/html")
|
211 |
|
212 |
@app.post("/login", response_model=TokenResponse)
|
213 |
-
def
|
214 |
username = authenticate_user(form_data.username, form_data.password)
|
215 |
if not username:
|
216 |
raise HTTPException(
|
|
|
210 |
return FileResponse(path=str(file_path), media_type="text/html")
|
211 |
|
212 |
@app.post("/login", response_model=TokenResponse)
|
213 |
+
def login_app(form_data: OAuth2PasswordRequestForm = Depends()):
|
214 |
username = authenticate_user(form_data.username, form_data.password)
|
215 |
if not username:
|
216 |
raise HTTPException(
|