summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorBryce Johnson <bryce@gitlab.com>2016-09-23 11:25:30 +0200
committerBryce Johnson <bryce@gitlab.com>2016-10-15 08:27:24 +0200
commit74bfba72263ae28a1a9a9fd53984e5d11a125fa7 (patch)
tree99d786f3a0411109081f78e29019f39059afd582 /app
parent83fb1190205c3d1fbe16a684794ed1af10ed1bff (diff)
downloadgitlab-ce-74bfba72263ae28a1a9a9fd53984e5d11a125fa7.tar.gz
Include correct validation error with username invalid.
Diffstat (limited to 'app')
-rw-r--r--app/views/devise/shared/_signup_box.html.haml3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/devise/shared/_signup_box.html.haml b/app/views/devise/shared/_signup_box.html.haml
index 7382042cc50..fb7ee2dbd3b 100644
--- a/app/views/devise/shared/_signup_box.html.haml
+++ b/app/views/devise/shared/_signup_box.html.haml
@@ -8,8 +8,7 @@
= f.text_field :name, class: "form-control top", required: true, title: "This field is required."
%div.username.form-group
= f.label :username
- = f.text_field :username, class: "form-control middle no-gl-field-error", pattern: "[a-zA-Z0-9]+", required: true
- %p.gl-field-error.hide Please create a username with only alphanumeric characters.
+ = f.text_field :username, class: "form-control middle no-gl-field-error", pattern: "[a-zA-Z0-9]+", required: true, title: 'Please create a username with only alphanumeric characters.'
%p.validation-error.hide Username is already taken.
%p.validation-success.hide Username is available.
%p.validation-pending.hide Checking username availability...