Request resend of verification mail

This commit is contained in:
Frank
2026-01-14 13:09:32 +01:00
parent a90489da28
commit a6df6cbf0c
7 changed files with 103 additions and 3 deletions

View File

@@ -4,6 +4,7 @@
Please confirm your email address by clicking the following link: <br><br>
<a href="{{ signedUrl }}">Confirm my Email</a>.
This link will expire in {{ expiresAtMessageKey|trans(expiresAtMessageData, 'VerifyEmailBundle') }}.
If the link has expired or doesn't work, you can <a href="{{ url('app_verify_resend_email') }}">request a new one</a>.
</p>
<p>

View File

@@ -0,0 +1,17 @@
{% extends 'base.html.twig' %}
{% block title %}Resend verification email{% endblock %}
{% block body %}
<h1>Resend verification email</h1>
<p>Enter your email address and we will send you a new link to verify your account.</p>
{{ form_errors(resendForm) }}
{{ form_start(resendForm) }}
{{ form_row(resendForm.email) }}
<button type="submit" class="btn">Resend email</button>
{{ form_end(resendForm) }}
{% endblock %}

View File

@@ -5,7 +5,12 @@
{% block body %}
<form method="post">
{% if error %}
<div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
<div class="alert alert-danger">
{{ error.messageKey|trans(error.messageData, 'security')|raw }}
{% if error.messageData['%resend_link%'] is defined %}
<a href="{{ error.messageData['%resend_link%'] }}">Resend activation link</a>
{% endif %}
</div>
{% endif %}
{% if app.user %}
@@ -41,5 +46,8 @@
<div class="mt-3">
<a href="{{ path('app_forgot_password_request') }}">Forgot your password?</a>
</div>
<div class="mt-1">
<a href="{{ path('app_verify_resend_email') }}">Didn't receive activation email?</a>
</div>
</form>
{% endblock %}