Re:Ask HN: Strategy for password reset email vs URL to reset...
by drivebyacct2 on Sunday July 17, 2011 @10:25PM
(#2774881)
I can't think of anything in particular you'd need to worry about. Something long enough that it would be infeasible to try and attack. We just use GUIDs, but those may be predictable if you know the generation time (I'm not sure about that, to be honest).
[ Parent
| on HN ]
Re:Ask HN: Strategy for password reset email vs URL to reset...
by dav-id on Monday July 18, 2011 @03:25AM
(#2775426)
I do exactly the same thing.
The guid is set to expire after a period of time and requires that registered email and the key together. It won't allow login, only changing of their password.