From 36f10d51eed14c474b53d1fdf7aa6793c261077b Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Thu, 12 Sep 2019 14:25:03 +0200 Subject: [PATCH] Show character counters on register page. --- app/templates/auth/register.html.j2 | 4 ++-- app/templates/base.html.j2 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/templates/auth/register.html.j2 b/app/templates/auth/register.html.j2 index 19dbcd57..24d54d9d 100644 --- a/app/templates/auth/register.html.j2 +++ b/app/templates/auth/register.html.j2 @@ -13,7 +13,7 @@ {{ form.hidden_tag() }}
person - {{ form.username(class='validate') }} + {{ form.username(class='validate', data_length='64') }} {{ form.username.label }} {% for error in form.username.errors %} {{ error }} @@ -37,7 +37,7 @@
email - {{ form.email(class='validate', type='email') }} + {{ form.email(class='validate', data_length='254', type='email') }} {{ form.email.label }} {% for error in form.email.errors %} {{ error }} diff --git a/app/templates/base.html.j2 b/app/templates/base.html.j2 index 06e4a961..307a486b 100644 --- a/app/templates/base.html.j2 +++ b/app/templates/base.html.j2 @@ -182,7 +182,7 @@