diff --git a/src/Controller/UserController.php b/src/Controller/UserController.php index 9597a07..5f44c1b 100644 --- a/src/Controller/UserController.php +++ b/src/Controller/UserController.php @@ -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), diff --git a/templates/user/index.html.twig b/templates/user/index.html.twig index 48d692f..752695c 100644 --- a/templates/user/index.html.twig +++ b/templates/user/index.html.twig @@ -3,6 +3,11 @@ {% block title %}User{% endblock %} {% block body %} + {% for message in app.flashes('error') %} +