{% extends "FOSUserBundle::layout.html.twig" %} {% trans_default_domain 'FOSUserBundle' %} {% block fos_user_content %}

Welcome {{user.username}}..... now go away.

{% if app.session is not empty %} {% set targetUrl = app.session.get('_security.' ~ app.security.token.providerKey ~ '.target_path') %} {% if targetUrl is not empty %}

{{ 'registration.back'|trans }}

{% endif %} {% endif %} {% endblock fos_user_content %}