summaryrefslogtreecommitdiff
path: root/users/app/views
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2012-11-13 12:00:13 +0100
committerAzul <azul@leap.se>2012-11-13 12:00:13 +0100
commit6ba3366f778340ebeaa73fd53372368b16de6c98 (patch)
tree8249f6cd14e1ba859fd63a35f9f24456cb307d13 /users/app/views
parent78475cb1b3d4f18a5c0a0fb326e6465b92a5f0e7 (diff)
using client side validations during signup
Diffstat (limited to 'users/app/views')
-rw-r--r--users/app/views/users/new.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/users/app/views/users/new.html.haml b/users/app/views/users/new.html.haml
index 3e7d06d..be14c52 100644
--- a/users/app/views/users/new.html.haml
+++ b/users/app/views/users/new.html.haml
@@ -3,7 +3,7 @@
= simple_form_for @user, :validate => true, :html => {:class => 'form-horizontal'} do |f|
%legend=t :signup_message
= f.input :login, :input_html => { :id => :srp_username }
- = f.input :password, :required => true, :input_html => { :id => :srp_password }
+ = f.input :password, :required => true, :validate => true, :input_html => { :id => :srp_password }
= f.input :password_confirmation, :required => true, :input_html => { :id => :srp_password_confirmation }
= f.button :submit, :value => t(:signup), :class => 'btn-primary'
= link_to t(:cancel), root_url, :class => :btn