Notify not verified
This commit is contained in:
parent
1b4128cd09
commit
92c683eb51
2 changed files with 10 additions and 0 deletions
|
@ -30,6 +30,11 @@ class UserController extends AbstractController
|
||||||
{
|
{
|
||||||
$user = $this->getUser();
|
$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', [
|
return $this->render('user/index.html.twig', [
|
||||||
'user' => $user,
|
'user' => $user,
|
||||||
'offers' => $offeringRepository->findByUser($user),
|
'offers' => $offeringRepository->findByUser($user),
|
||||||
|
|
|
@ -3,6 +3,11 @@
|
||||||
{% block title %}User{% endblock %}
|
{% block title %}User{% endblock %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
|
{% for message in app.flashes('error') %}
|
||||||
|
<div class="alert alert-danger" role="alert">
|
||||||
|
{{ message }}
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
{% for message in app.flashes('success') %}
|
{% for message in app.flashes('success') %}
|
||||||
<div class="alert alert-success" role="alert">
|
<div class="alert alert-success" role="alert">
|
||||||
{{ message }}
|
{{ message }}
|
||||||
|
|
Reference in a new issue