summaryrefslogtreecommitdiff
path: root/users/app/views/sessions
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2012-11-22 11:36:25 +0100
committerAzul <azul@leap.se>2012-11-22 11:36:25 +0100
commitcec9ad7c514f2f3c767bd12bfc3df28db4d1a98b (patch)
treec6d1d9cdfe809e26b1aab42a31714bbfa800da90 /users/app/views/sessions
parent7e5db2a28ba872154e5f5002bb84d149a512e36e (diff)
using client side validations for login
Diffstat (limited to 'users/app/views/sessions')
-rw-r--r--users/app/views/sessions/new.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/users/app/views/sessions/new.html.haml b/users/app/views/sessions/new.html.haml
index c91d3f2..a04f584 100644
--- a/users/app/views/sessions/new.html.haml
+++ b/users/app/views/sessions/new.html.haml
@@ -1,6 +1,6 @@
.span8.offset2
%h2=t :login
- = simple_form_for :session, :url => sessions_path, :html => { :id => :new_session, :class => 'form-horizontal' } do |f|
+ = simple_form_for @session, :validate => true, :html => { :id => :new_session, :class => 'form-horizontal' } do |f|
%legend=t :login_message
= f.input :login, :input_html => { :id => :srp_username }
= f.input :password, :required => true, :input_html => { :id => :srp_password }