add config option to disable registration

add command to create user
This commit is contained in:
Matthew Scragg 2014-09-13 22:47:17 -05:00
parent 17eabddd70
commit b8531a0347
10 changed files with 131 additions and 45 deletions

View file

@ -59,8 +59,10 @@
</ul>
</li>
{% else %}
<li><a href="{{ url_for('auth.login') }}"><i class="icon-user"></i> &nbsp;Login</a></li>
<li><a href="{{ url_for('auth.login') }}"><i class="icon-user"></i> &nbsp;Login</a></li>
{% if config.REGISTRATION_ENABLED %}
<li><a href="{{ url_for('auth.register') }}"><i class="icon-pencil"></i> &nbsp;Register</a></li>
{% endif %}
{% endif %}
</ul>
</div><!--/.nav-collapse -->