summaryrefslogtreecommitdiff
path: root/users/lib/warden
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2012-11-23 12:11:11 +0100
committerAzul <azul@leap.se>2012-11-23 15:09:53 +0100
commitee3c9146e4bbe93ec1f00ee45386a82ec4363c4d (patch)
treeec673f97f22c13c19c1f9034dfe88646525bdeae /users/lib/warden
parent716dc248e940be8bd323a9d92f98785737fc99a0 (diff)
identify user by id so rerendering the form does not use new invalid login
Diffstat (limited to 'users/lib/warden')
-rw-r--r--users/lib/warden/strategies/secure_remote_password.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/users/lib/warden/strategies/secure_remote_password.rb b/users/lib/warden/strategies/secure_remote_password.rb
index 95570e0..953e2e9 100644
--- a/users/lib/warden/strategies/secure_remote_password.rb
+++ b/users/lib/warden/strategies/secure_remote_password.rb
@@ -30,7 +30,7 @@ module Warden
end
def initialize!
- user = User.find_by_param(id)
+ user = User.find_by_login(id)
session[:handshake] = user.initialize_auth(params['A'].hex)
custom! json_response(session[:handshake])
rescue RECORD_NOT_FOUND