summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-03-05 22:18:11 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-03-05 22:18:11 +0100
commit8057c16cc438769671f5d47aef39e8017b430d19 (patch)
tree06098ecab4bcf839f59326766fd7ee8019d40b31 /templates
parent4dc0a90ef8a3a33ab32f6711898a7687a7371b73 (diff)
enable form validation for login page
Diffstat (limited to 'templates')
-rw-r--r--templates/login.html.ep4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/login.html.ep b/templates/login.html.ep
index 1acff00..4e9b1c2 100644
--- a/templates/login.html.ep
+++ b/templates/login.html.ep
@@ -45,12 +45,12 @@
<div class="row">
<div class="input-field col s12">
<i class="material-icons prefix">account_circle</i>
- %= text_field 'user', id => 'user', class => 'validate'
+ %= text_field 'user', id => 'user', class => 'validate', required => undef, maxlength => 60
<label for="user">Account</label>
</div>
<div class="input-field col s12">
<i class="material-icons prefix">lock</i>
- %= password_field 'password', id => 'password', class => 'validate'
+ %= password_field 'password', id => 'password', class => 'validate', required => undef
<label for="password">Passwort</label>
</div>
</div>