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 Antwort
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
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen