Skip to content

Bug fix for "token expiration" time & timezones

Compare
Choose a tag to compare
@weaverryan weaverryan released this 18 Dec 15:01

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!