antonydb·15 ปีที่แล้ว·discussI assign them a token that is associated with their account.The token is included in the link sent to them (via email) that directs them to where they can reset their password.The token is only valid for 24 hours and is unique so it can be authenticated against their email when they're resetting their password.If someone logs into that account in the meantime, the token is removed and the link to resetting their password becomes invalid.
The token is included in the link sent to them (via email) that directs them to where they can reset their password.
The token is only valid for 24 hours and is unique so it can be authenticated against their email when they're resetting their password.
If someone logs into that account in the meantime, the token is removed and the link to resetting their password becomes invalid.