login: verify username patterns

This commit is contained in:
Derf Null 2023-03-31 18:42:43 +02:00
parent 0e2e976072
commit e4e660e839
No known key found for this signature in database
GPG key ID: 19E6E524EBB177BA

View file

@ -55,7 +55,7 @@
<div class="row">
<div class="input-field col s12">
<i class="material-icons prefix">account_circle</i>
%= text_field 'user', id => 'user', class => 'validate', required => undef, maxlength => 60, autocomplete => 'username'
%= text_field 'user', id => 'user', class => 'validate', required => undef, pattern => '[0-9a-zA-Z_-]+', maxlength => 60, autocomplete => 'username'
<label for="user">Account</label>
</div>
<div class="input-field col s12">