Prompt for a password change in account settings
Your task
Your React and TypeScript app has an account settings page, and users change their password there. The form asks for the current password, then the new one twice. The last form like this that an agent built for you looked fine in the demo, and support still got a steady stream of tickets about it.
Write the prompt you would give the agent.
What you know:
- the API is
POST /api/account/passwordwith{ currentPassword, newPassword }, and it returns 403 when the current password is wrong and 429 after 5 wrong tries in an hour - a new password needs at least 8 characters and at least 1 digit, must differ from the current one, and the server checks again
- forms use react-hook-form, and the password input is
PasswordInputfromsrc/ui
Then, in a few sentences: which requirement does a vague prompt almost always miss?