Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWSCognito forgot password not working for non verified mobile number iOS

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. Any help will be much appreciated. Thanks.

like image 884
Madhavan Avatar asked Apr 12 '17 10:04

Madhavan


People also ask

How do I find my Cognito verification code?

Choose Manage User Pools. On the Your User Pools page, choose the user pool that you want to configure. In the navigation menu on the left, choose MFA and verifications. If you choose this option, Amazon Cognito emails a verification code when the user signs up.

Is it possible to get AWS Cognito user password?

It is not possible to get a user password from AWS Cognito.

How do I change my Cognito email?

You can use adminUpdateUserAttributes to update user email and email_verified after that Amazon Cognito sends email again (check here). Save this answer.


1 Answers

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.

like image 88
Vinay Kushwaha Avatar answered Sep 21 '22 01:09

Vinay Kushwaha