summaryrefslogtreecommitdiff
path: root/users/lib
diff options
context:
space:
mode:
authorjessib <jessib@leap.se>2013-06-27 12:31:39 -0700
committerjessib <jessib@leap.se>2013-06-27 12:31:39 -0700
commita01e7686ea7c046a9cd544b618b30727f2a41b3b (patch)
treee00261ade269bfe6ddc843a728a4355807228ea9 /users/lib
parentba036558e47da53e86ccb8cb7fb4ee1db725b804 (diff)
Want to tweak some, but start to displaying base generic message via javascript.
Diffstat (limited to 'users/lib')
-rw-r--r--users/lib/warden/strategies/secure_remote_password.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/users/lib/warden/strategies/secure_remote_password.rb b/users/lib/warden/strategies/secure_remote_password.rb
index f1b1a57..2dcd706 100644
--- a/users/lib/warden/strategies/secure_remote_password.rb
+++ b/users/lib/warden/strategies/secure_remote_password.rb
@@ -28,7 +28,7 @@ module Warden
if client = validate
success!(User.find_by_login(client.username))
else
- fail!({:login => "invalid_user_pass", :password => "invalid_user_pass"})
+ fail!(:base => "invalid_user_pass")
end
end
@@ -44,7 +44,7 @@ module Warden
session[:handshake] = SRP::Session.new(client, params['A'].hex)
custom! json_response(session[:handshake])
else
- fail!({:login => "invalid_user_pass", :password => "invalid_user_pass"})
+ fail! :base => 'invalid_user_pass'
end
end