Re:Ask HN: Strategy for password reset email vs URL to reset...
by trotsky on Sunday July 17, 2011 @10:20PM
(#2774873)
You need to worry about users who have other people maliciously requesting resets just to bother them. A password reset link in email is the more easily ignored. If you send a new password, you need to make sure you still accept the old one in case it wasn't them who requested the reset. You'd also want/need to time out the 2nd "reset" password after a short period, as you don't want someone who gains access to their email account to be able to use it sometime in the future (possibly long after they've lost access to the email account). Long story short - use the reset link, there are good reasons why it's the widely used choice.
[ Parent
| on HN ]
Re:Ask HN: Strategy for password reset email vs URL to reset...
by edanm on Monday July 18, 2011 @12:38AM
(#2775140)
How common is the resetting someone's password to annoy them? I know it's a very common rationale for sending reset links, but I'm trying to remember if I've ever heard of it actually happening for real, and drawing a blank.
Re:Ask HN: Strategy for password reset email vs URL to reset...
by trotsky on Monday July 18, 2011 @01:04AM
(#2775179)
I'm sure it's service dependent, with some services the frequency would likely be essentially 0, but some services like popular online games you'd see it happen widely the first day you allowed it.
The problem is, one person does this you pretty much have to change your code immediately if you disable an old password. And while I focused on the malicious, don't discount the accidental - my gmail routinely gets sent email meant for people who couldn't enter their own email address correctly when signing up for various things. If out of the blue a customer can't use their password and has to go find a new one to enter they aren't going to be too impressed even if it doesn't happen again.