Add option to disable registration

This commit is contained in:
Thomas Citharel
2016-07-02 14:35:52 +02:00
committed by Jeremy Benoist
parent 79efca1e6f
commit de3d716ae4
7 changed files with 54 additions and 1 deletions

View File

@ -33,7 +33,9 @@
</div>
<div class="card-action center">
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}" />
<a href="{{ path('fos_user_registration_register') }}" class="waves-effect waves-light grey btn">{{ 'security.login.register'|trans }}</a>
{% if registration_enabled %}
<a href="{{ path('fos_user_registration_register') }}" class="waves-effect waves-light grey btn">{{ 'security.login.register'|trans }}</a>
{% endif %}
<button class="btn waves-effect waves-light" type="submit" name="send">
{{ 'security.login.submit'|trans }}
<i class="material-icons right">send</i>