We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to add a new field to the OAuth2PasswordRequestForm?
OAuth2PasswordRequestForm
I need to add a new optional field called new_password in the following Request Body:
new_password
Request Body
What I was trying to do:
class LoginForm(OAuth2PasswordRequestForm): def __init__(self, new_password: str = Form(None)): super().__init__() self.new_password = new_password
But it overwrites what is there and just show the new_password:
The text was updated successfully, but these errors were encountered:
I guess you intended to ask this in FastAPI... 😄 thanks for closing it here 👍
Sorry, something went wrong.
No branches or pull requests
Description
Is it possible to add a new field to the
OAuth2PasswordRequestForm
?Additional context
I need to add a new optional field called
new_password
in the followingRequest Body
:What I was trying to do:
But it overwrites what is there and just show the
new_password
:The text was updated successfully, but these errors were encountered: