AWSCognito forgot password not working for non verified mobile number iOS
Asked Answered
A

2

8

We are facing some problem while updating user password using forgot password option in Amazon Cognito. In one case, I updated my mobile number after that I didn’t verify my mobile number and move back to forgot password set up. We tried resetting the password here and we got an error as, “Cannot reset password for the user as there is no registered/verified email or phone_number”.

The expectation here is, I have to verify my mobile number in order to update my password. After this issue again we need to verify the user mobile number. Is there any way to fix this?

Abidjan answered 12/4, 2017 at 10:33 Comment(0)
A
5

If the account is stuck in this state, AdminUpdateUserAttributes API can be called and the mobile number can be changed or can be marked as verified. From an end user perspective, end user will have to contact app developer to get around this.

Arteriotomy answered 12/4, 2017 at 17:14 Comment(0)
D
0

In the cognito user pool attributes you need to set EMAIL_AND_PHONE_WITHOUT_MFA in the recover option not just EMAIL_AND_PHONE.

In CDK:

accountRecovery: AccountRecovery.EMAIL_AND_PHONE_WITHOUT_MFA,

I hope this fixes your problem.

Dumyat answered 1/4 at 5:56 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.