Skip to content

does forgot password email get sent if user invite expired?

0

when creating a user account, we send an email to the user with a temporary password. this is a cognito function, not us.

we have the temporary password set to 3 days, if they don't accept in that time period the user will go through the forgot password workflow.

will the user receive an email with a code to reset their password?

asked 10 months ago211 views

1 Answer
0

When a user's temporary password expires after the 3-day period, they can still use the forgot password workflow in Amazon Cognito. When the user initiates the forgot password process, Amazon Cognito will send a password reset code to their verified email address or phone number, depending on your user pool's account recovery settings.

The ForgotPassword operation starts a password recovery flow for a user by sending a confirmation code to the user's configured notification destination (such as email). This is separate from the initial temporary password invitation and works regardless of whether the initial invitation has expired.

Similarly, as an administrator, you can use the AdminResetUserPassword operation, which sets the user's account status to RESET_REQUIRED and sends them a password reset code. This operation is the administrative equivalent to the user-initiated ForgotPassword flow.

Amazon Cognito allows between 5 and 20 attempts per hour for a user to request or enter a password reset code, with the exact limit depending on risk parameters associated with the requests.
Sources
Passwords, account recovery, and password policies - Amazon Cognito
ForgotPassword - Amazon Cognito User Pools
Use ForgotPassword with an AWS SDK or CLI - Amazon Cognito
AdminResetUserPassword - Amazon Cognito User Pools

answered 10 months ago

  • what if they have put the expired password in several times where they have locked their account and then triggered the forgot password code? i have all send and delivery event types going into a log and i do not see the forgot password email going out for this user, but I do see it for others.

  • after we manually reset the user's password they logged in and then the forgot password email worked. so i think the generated AI comment is wrong.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.