Notify not verified

This commit is contained in:
Jannis Portmann 2021-05-11 12:00:53 +02:00
parent 1b4128cd09
commit 92c683eb51
2 changed files with 10 additions and 0 deletions

View file

@ -30,6 +30,11 @@ class UserController extends AbstractController
{
$user = $this->getUser();
if (!$user->isVerified())
{
$this->addFlash('error','Your email is not verified, please check your inbox');
}
return $this->render('user/index.html.twig', [
'user' => $user,
'offers' => $offeringRepository->findByUser($user),

View file

@ -3,6 +3,11 @@
{% block title %}User{% endblock %}
{% block body %}
{% for message in app.flashes('error') %}
<div class="alert alert-danger" role="alert">
{{ message }}
</div>
{% endfor %}
{% for message in app.flashes('success') %}
<div class="alert alert-success" role="alert">
{{ message }}