Skip to content
Snippets Groups Projects
Commit 9dd5faf4 authored by Sebastien Curt's avatar Sebastien Curt
Browse files

On mail verification success redirection on login page + message

parent a864d2dd
No related branches found
No related tags found
1 merge request!8Tuleap 40 register
......@@ -103,7 +103,7 @@ class RegistrationController extends AbstractController
// @TODO Change the redirect on success and handle or remove the flash message in your templates
$this->addFlash('success', 'Your email address has been verified.');
return $this->redirectToRoute('app_register');
return $this->redirectToRoute('app_login');
}
/**
......
......@@ -6,13 +6,6 @@
{% for flashError in app.flashes('verify_email_error') %}
<div class="alert alert-danger col-6 mx-auto my-5 h1" role="alert">{{ flashError }}</div>
{% endfor %}
{% for flashMessage in app.flashes('success') %}
<div class="alert alert-warning col-6 mx-auto my-5 h1" role="alert" >{{ flashMessage }}</div>
{% endfor %}
<div>
</div>
{{ form_start(registrationForm, {'attr': {'class': 'd-flex flex-column justify-content-center'}}) }}
{{ form_row(registrationForm.firstName) }}
......
......@@ -7,6 +7,9 @@
{% if error %}
<div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
{% for flashMessage in app.flashes('success') %}
<div class="alert alert-warning col-6" role="alert" >{{ flashMessage }}</div>
{% endfor %}
{% if app.user %}
<div class="mb-3">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment