mirror of
https://github.com/fastapi/fastapi.git
synced 2026-02-24 02:38:13 -05:00
⬆️ Upgrade configuration for Ruff v0.2.0 (#11075)
This commit is contained in:
@@ -114,7 +114,7 @@ async def get_current_active_user(current_user: User = Depends(get_current_user)
|
||||
|
||||
@app.post("/token")
|
||||
async def login_for_access_token(
|
||||
form_data: OAuth2PasswordRequestForm = Depends()
|
||||
form_data: OAuth2PasswordRequestForm = Depends(),
|
||||
) -> Token:
|
||||
user = authenticate_user(fake_users_db, form_data.username, form_data.password)
|
||||
if not user:
|
||||
|
||||
Reference in New Issue
Block a user