Skip to content

Commit

Permalink
⏪ Revert changes in docstring that should go in another PR and are al…
Browse files Browse the repository at this point in the history
…so still broken 😅
  • Loading branch information
tiangolo committed Aug 24, 2022
1 parent 50a7937 commit 8f1340a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fastapi/security/oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class OAuth2PasswordRequestForm:
@app.post("/login")
def login(form_data: OAuth2PasswordRequestForm = Depends()):
data = form_data.parse()
print(data.username)
print(data.password)
for scope in data.scopes:
Expand Down Expand Up @@ -65,6 +66,7 @@ class OAuth2PasswordRequestFormStrict(OAuth2PasswordRequestForm):
@app.post("/login")
def login(form_data: OAuth2PasswordRequestFormStrict = Depends()):
data = form_data.parse()
print(data.username)
print(data.password)
for scope in data.scopes:
Expand Down

0 comments on commit 8f1340a

Please sign in to comment.