diff options
author | ThibG <thib@sitedethib.com> | 2020-08-19 19:00:47 +0200 |
---|---|---|
committer | Starfall <us@starfall.systems> | 2020-08-25 13:38:21 -0500 |
commit | c2a8ea7a505566efc747f1e29785b9ef4d5f63ab (patch) | |
tree | 8c57e449dc2dfdf1d21af0f28416e63e5fd4f1d6 /app/views/about | |
parent | 3650a64d5a018902eb3db79fddcb065f487b3afd (diff) |
Fix client-side form validation not accepting handles with uppercase letters (#14599)
Diffstat (limited to 'app/views/about')
-rw-r--r-- | app/views/about/_registration.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/about/_registration.html.haml b/app/views/about/_registration.html.haml index 336acad6a..5d159e9e6 100644 --- a/app/views/about/_registration.html.haml +++ b/app/views/about/_registration.html.haml @@ -4,7 +4,7 @@ .fields-group = f.simple_fields_for :account do |account_fields| - = account_fields.input :username, wrapper: :with_label, label: false, required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.username'), :autocomplete => 'off', placeholder: t('simple_form.labels.defaults.username'), pattern: '[a-z0-9_]+', maxlength: 30 }, append: "@#{site_hostname}", hint: false, disabled: closed_registrations? + = account_fields.input :username, wrapper: :with_label, label: false, required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.username'), :autocomplete => 'off', placeholder: t('simple_form.labels.defaults.username'), pattern: '[a-zA-Z0-9_]+', maxlength: 30 }, append: "@#{site_hostname}", hint: false, disabled: closed_registrations? = f.input :email, placeholder: t('simple_form.labels.defaults.email'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.email'), :autocomplete => 'off' }, hint: false, disabled: closed_registrations? = f.input :password, placeholder: t('simple_form.labels.defaults.password'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.password'), :autocomplete => 'off', :minlength => User.password_length.first, :maxlength => User.password_length.last }, hint: false, disabled: closed_registrations? |