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

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ