packagist symfonycasts/verify-email-bundle v1.1.1
Bug fix for "token expiration" time & timezones

latest releases: dev-main, v1.17.1, dev-bocharsky-bw-patch-1...
3 years ago

Hi friends!

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

Previously, depending on your server timezone, the "verify email link expiration" 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 chnage:

- This link will expire in {{ expiresAt|date('g') }} hour(s).
+ This link will expire in {{ expiresAtMessageKey|trans(expiresAtMessageData, 'VerifyEmailBundle') }}.

Have fun!

Don't miss a new verify-email-bundle release

NewReleases is sending notifications on new releases.