how implement forgot password for cognito user by email

0

I have cognito user pool with users. I need to implement forgot password logic with email also like with username. It's means that you can enter email or username and it will start forgot password procedure. Do you know any ways to do it?

1 回答
0

If you set the email address as a sign in alias, this can also be used for the forgot password flow [1]. Unfortunately, it looks like you can only set this on creation, so you'd need to create a new user pool and migrate users over.

More info in the Aliases section here: https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-attributes.html

[1] For the Username parameter, you can use the username or user alias. https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_ForgotPassword.html

Ed
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则