github SymfonyCasts/reset-password-bundle v1.2.1
Bug fix for "link expiration" time & timezones

latest releases: v1.21.0, v1.20.3, v1.20.2...
3 years ago

Hi friends!

This is a small release that contains one bug fix in #135 thanks to @jrushlow - which fixes #119

Previously, depending on your server timezone, the "reset password link expiration" email may have rendered incorrectly, for example telling the user that they had, for example, 7 hours until the token expired, when in reality it was only 1.

The fix also adds native translation support. To use it, in the template that sends the verification email, make the following change:

- <p>This link will expire in {{ tokenLifetime|date('g') }} hour(s).</p>
+ <p>This link will expire in {{ resetToken.expirationMessageKey|trans(resetToken.expirationMessageData, 'ResetPasswordBundle') }}.</p>

Have fun!

Don't miss a new reset-password-bundle release

NewReleases is sending notifications on new releases.