summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDerf Null <derf@finalrewind.org>2023-03-31 18:42:43 +0200
committerDerf Null <derf@finalrewind.org>2023-03-31 18:42:43 +0200
commite4e660e839822137971df72f0eacb672cd4cbd0a (patch)
tree2e44c7bd37f0f1ded5808b9648e58c69f644e808 /templates
parent0e2e9760720cf1a3a87b8831800420c2891963d6 (diff)
login: verify username patterns1.30.10
Diffstat (limited to 'templates')
-rw-r--r--templates/login.html.ep2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/login.html.ep b/templates/login.html.ep
index a5aa8e3..7b225ec 100644
--- a/templates/login.html.ep
+++ b/templates/login.html.ep
@@ -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">