diff options
author | Azul <azul@leap.se> | 2012-11-22 11:36:25 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2012-11-22 11:36:25 +0100 |
commit | cec9ad7c514f2f3c767bd12bfc3df28db4d1a98b (patch) | |
tree | c6d1d9cdfe809e26b1aab42a31714bbfa800da90 /users/app/controllers | |
parent | 7e5db2a28ba872154e5f5002bb84d149a512e36e (diff) |
using client side validations for login
Diffstat (limited to 'users/app/controllers')
-rw-r--r-- | users/app/controllers/sessions_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/users/app/controllers/sessions_controller.rb b/users/app/controllers/sessions_controller.rb index 66c1c4f..32d1ddc 100644 --- a/users/app/controllers/sessions_controller.rb +++ b/users/app/controllers/sessions_controller.rb @@ -3,6 +3,7 @@ class SessionsController < ApplicationController skip_before_filter :verify_authenticity_token def new + @session = Session.new if @errors = authentication_error render :status => 422 end |