diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-03-05 22:18:11 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-03-05 22:18:11 +0100 |
commit | 8057c16cc438769671f5d47aef39e8017b430d19 (patch) | |
tree | 06098ecab4bcf839f59326766fd7ee8019d40b31 /templates/login.html.ep | |
parent | 4dc0a90ef8a3a33ab32f6711898a7687a7371b73 (diff) |
enable form validation for login page
Diffstat (limited to 'templates/login.html.ep')
-rw-r--r-- | templates/login.html.ep | 4 |
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> |