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.
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.
It is not possible to get a user password from AWS Cognito.
You can use adminUpdateUserAttributes to update user email and email_verified after that Amazon Cognito sends email again (check here). Save this answer.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With