Skip to content

Wrong format in check_email template? #142

@lukepass

Description

@lukepass

Hello, this is the current check_email template:

{% extends 'base.html.twig' %}

{% block title %}Password Reset Email Sent{% endblock %}

{% block body %}
    <p>An email has been sent that contains a link that you can click to reset your password. This link will expire in {{ tokenLifetime|date('g') }} hour(s).</p>
    <p>If you don't receive an email please check your spam folder or <a href="{{ path('app_forgot_password_request') }}">try again</a>.</p>
{% endblock %}

This prints the message:

An email has been sent that contains a link that you can click to reset your password. This link will expire in 2 hour(s).

Which is wrong because in the email I get "1 hour".

The problem is that tokenLifetime contains "3600" and it's not a timestamp (thus cannot be converted to date?).

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugBug Fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions