密码重置链接何时过期?

Every now and then, I get a complain from my users that password reset link is expired for them and they get confused. and I dont exactly know what is the reproduction steps. I thought maybe they send the password reset email twice at once and mistakenly click on the old (first email) link. But when I did this, both links worked correctly. When exactly the link expires?

While I’d say that an expired password reset link is not really a big issue (you can just request a new one), I do agree that it would make sense to include some expiry information in the relevant email templates. I was unable to find out that information though.

3 个赞

The default is 48 hours. You can change the validity period with the email token valid hours site setting.

3 个赞

我的一位用户似乎遇到了这个问题。他尝试重置密码但未成功,并给我发了邮件:

我等待邮件,收到后立即点击链接,但到目前为止,两次都提示信息已过期。

:man_shrugging:

是他的电脑时间不对吗?是服务器时间不对吗?