ihatemoney/budget/templates/authenticate.html
0livd a5856a3b05 Add a @require_admin decorator
It can be used to protect specific endpoints with ADMIN_PASS
(a password that is stored unencrypted in the settings)
The decorator has no effect if ADMIN_PASS is an empty string (default value)
2017-05-04 18:09:34 +02:00

19 lines
595 B
HTML

{% extends "layout.html" %}
{% block content %}
<h2>Authentication</h2>
{% if create_project %}
<p class="info">{{ _("The project you are trying to access do not exist, do you want
to") }} <a href="{{ url_for(".create_project", project_id=create_project) }}">{{ _("create it") }}</a>{{ _("?") }}
</p>
{% endif %}
{% if admin %}
<form class="form-horizontal" method="POST" accept-charset="utf-8">
{{ forms.authenticate_admin(form) }}
</form>
{% else %}
<form class="form-horizontal" method="POST" accept-charset="utf-8">
{{ forms.authenticate(form) }}
</form>
{% endif %}
{% endblock %}