diff options
author | Daniel Friesel <derf@finalrewind.org> | 2022-03-07 18:12:43 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2022-03-07 18:12:43 +0100 |
commit | 13b4572a2f58231272c7f40add706d561ecf4855 (patch) | |
tree | 4835dc1793969445ae9d4209380bce1b21803e1a /templates | |
parent | e2e33de7e1cb82b89cc0b19f9a022787eec98916 (diff) |
limit password length to 10000 characters
that should be sufficient…
Diffstat (limited to 'templates')
-rw-r--r-- | templates/change_password.html.ep | 4 | ||||
-rw-r--r-- | templates/register.html.ep | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/templates/change_password.html.ep b/templates/change_password.html.ep index 29aa621..c49226a 100644 --- a/templates/change_password.html.ep +++ b/templates/change_password.html.ep @@ -15,12 +15,12 @@ <div class="row"> <div class="input-field col l6 m12 s12"> <i class="material-icons prefix">lock</i> - %= password_field 'newpw', id => 'password', class => 'validate', required => undef, minlength => 8, autocomplete => 'new-password' + %= password_field 'newpw', id => 'password', class => 'validate', required => undef, minlength => 8, maxlength => 10000, autocomplete => 'new-password' <label for="password">Neues Passwort</label> </div> <div class="input-field col l6 m12 s12"> <i class="material-icons prefix">lock</i> - %= password_field 'newpw2', id => 'password2', class => 'validate', required => undef, minlength => 8, autocomplete => 'new-password' + %= password_field 'newpw2', id => 'password2', class => 'validate', required => undef, minlength => 8, maxlength => 10000, autocomplete => 'new-password' <label for="password2">Passwort wiederholen</label> </div> </div> diff --git a/templates/register.html.ep b/templates/register.html.ep index c27b591..7aba55a 100644 --- a/templates/register.html.ep +++ b/templates/register.html.ep @@ -17,12 +17,12 @@ </div> <div class="input-field col l6 m12 s12"> <i class="material-icons prefix">lock</i> - %= password_field 'password', id => 'password', class => 'validate', required => undef, minlength => 8, autocomplete => 'new-password' + %= password_field 'password', id => 'password', class => 'validate', required => undef, minlength => 8, maxlength => 10000, autocomplete => 'new-password' <label for="password">Passwort</label> </div> <div class="input-field col l6 m12 s12"> <i class="material-icons prefix">lock</i> - %= password_field 'password2', id => 'password2', class => 'validate', required => undef, minlength => 8, autocomplete => 'new-password' + %= password_field 'password2', id => 'password2', class => 'validate', required => undef, minlength => 8, maxlength => 10000, autocomplete => 'new-password' <label for="password2">Passwort wiederholen</label> </div> </div> |