login: verify username patterns
This commit is contained in:
parent
0e2e976072
commit
e4e660e839
1 changed files with 1 additions and 1 deletions
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue