Skip to content

Commit

Permalink
check if registration_is_enabled is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
darrylhein authored Mar 18, 2021
1 parent e0091ef commit 92fc035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/views/Security/login.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
</form>
</div>

{% if registration_is_enabled %}
{% if registration_is_enabled is defined and registration_is_enabled %}
<div class="content-wrap_inside -text-center mt-8 mb-4 text-center">
<a href="{{ path('fos_user_registration_register') }}" class="button">{{ 'registration.submit'|trans }}</a>
</div>
Expand Down

0 comments on commit 92fc035

Please sign in to comment.