eli02 commited on
Commit
b385b1e
·
1 Parent(s): 8a81462

Rename login function to login_app for clarity and consistency

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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 login(form_data: OAuth2PasswordRequestForm = Depends()):
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(