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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南