aboutsummaryrefslogtreecommitdiff
path: root/app/templates
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2020-01-19 15:03:38 +0000
committerrubenwardy <rw@rubenwardy.com>2020-01-19 15:03:38 +0000
commit215839c4234ab65807020b42eb67a76cfa6e8767 (patch)
tree06aea997d63878c4ec9054c6c078d8769bc8e9fd /app/templates
parent783bc86aaf086ef4f2e23a247f1e157e27018364 (diff)
downloadcheatdb-215839c4234ab65807020b42eb67a76cfa6e8767.tar.xz
Add end-to-end test framework
Diffstat (limited to 'app/templates')
-rw-r--r--app/templates/flask_user/login.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/templates/flask_user/login.html b/app/templates/flask_user/login.html
index 6214c8c..a134388 100644
--- a/app/templates/flask_user/login.html
+++ b/app/templates/flask_user/login.html
@@ -15,7 +15,7 @@ Sign in
{{ form.hidden_tag() }}
{# Username or Email field #}
- {% set field = form.username if user_manager.enable_username else form.email %}
+ {% set field = form.username if user_manager.USER_ENABLE_REGISTER else form.email %}
<div class="form-group {% if field.errors %}has-error{% endif %}">
{# Label on left, "New here? Register." on right #}
<label for="{{ field.id }}" class="control-label">{{ field.label.text }}</label>
@@ -31,7 +31,7 @@ Sign in
{% set field = form.password %}
<div class="form-group {% if field.errors %}has-error{% endif %}">
<label for="{{ field.id }}" class="control-label">{{ field.label.text }}
- {% if user_manager.enable_forgot_password %}
+ {% if user_manager.USER_ENABLE_FORGOT_PASSWORD %}
<a href="{{ url_for('user.forgot_password') }}" tabindex='195'>
[{%trans%}Forgot My Password{%endtrans%}]</a>
{% endif %}
@@ -45,7 +45,7 @@ Sign in
</div>
{# Remember me #}
- {% if user_manager.enable_remember_me %}
+ {% if user_manager.USER_ENABLE_REMEMBER_ME %}
{{ render_checkbox_field(login_form.remember_me, tabindex=130) }}
{% endif %}