condition on sigup

added a if condition to check the variable SECURITY_REGISTERABLE value.
This commit is contained in:
mb
2020-07-08 11:15:59 +02:00
parent 4d644afeaa
commit 0e47201fd1
@@ -1,11 +1,14 @@
{%- if config.ACCOUNTS %}
{%- if not current_user.is_authenticated %}
{%- if config.SECURITY_REGISTERABLE %}
<div class="short-menu-right-button">
<a href="{{ url_for('security.register') }}">
<i class="user plus icon circular"></i> Sign Up
</a>
</div>
{%- endif %}
<div class="short-menu-right-button">
<a href="{{url_for_security('login', next=request.path)}}" style="text-decoration:none">
@@ -30,4 +33,4 @@
{%- endif %}
{%- endif %}
{%- endif %}
{%- endif %}