diff options
author | Azul <azul@leap.se> | 2012-11-23 12:11:11 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2012-11-23 15:09:53 +0100 |
commit | ee3c9146e4bbe93ec1f00ee45386a82ec4363c4d (patch) | |
tree | ec673f97f22c13c19c1f9034dfe88646525bdeae /users/lib/warden | |
parent | 716dc248e940be8bd323a9d92f98785737fc99a0 (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.rb | 2 |
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 |