Skip to content

Cognito ForgotPassword Console, API & Amplify Console returns "InvalidParameterException: Cannot reset password for the user as there is no registered/verified email or phone_number" — even though the email is already verified. #7401

@howking

Description

@howking

Checkboxes for prior research

Describe the bug

This is the same bug as #7101, which has not been resolved yet.

Regression Issue

  • Select this option if this issue appears to be a regression.

SDK version number

@aws-amplify/[email protected]

Which JavaScript Runtime is this issue in?

Node.js

Details of the browser/Node.js/ReactNative version

v22.17.0

Reproduction Steps

  1. Deploy the backend with the following configuration (with EMAIL_OTP enabled):
// auth/resource.ts
export const auth = defineAuth({
  loginWith: {
    email: true
  },
  multifactor: {
    mode: 'OPTIONAL',
    sms: false,
  },...
  1. Use the Amplify API to sign up (set a password and verify the email address with the confirmation code).
  2. Select password reset at the user on Amplify Web Console or call resetPassword() api

Observed Behavior

For users without MFA enabled, password reset works both via API and the console.
For users with MFA enabled, attempting to reset the password via API or the console results in an error.

Expected Behavior

The verification code is emailed to the user.

Possible Solution

No response

Additional Information/Context

No response

Metadata

Metadata

Assignees

Labels

bugThis issue is a bug.closed-for-stalenessp3This is a minor priority issueservice-apiThis issue is due to a problem in a service API, not the SDK implementation.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions