Better HN
topnewbestaskshowjobs
Log inSign up

antonydb

1 karma · joined Jul 19, 2011 (15y ago) · 1 submissions

Submissions

comment 15y ago · link · parent

I 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.