diff options
author | Azul <azul@leap.se> | 2012-11-09 16:05:22 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2012-11-09 16:05:22 +0100 |
commit | 63c5b2cafdefbd9b13297faa57ee2f18a5c07bf5 (patch) | |
tree | e89efe6e0922ef927f1b564a09f874e49e67e555 /users/config/initializers | |
parent | f9501552b7df41487e523c2a2fb3a102707ecae9 (diff) |
got integration test and login flow to work
Diffstat (limited to 'users/config/initializers')
-rw-r--r-- | users/config/initializers/warden.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/users/config/initializers/warden.rb b/users/config/initializers/warden.rb index 82753ec..11b950f 100644 --- a/users/config/initializers/warden.rb +++ b/users/config/initializers/warden.rb @@ -13,7 +13,7 @@ class Warden::SessionSerializer def deserialize(keys) klass, id = keys - klass.find(id) + klass.constantize.find(id) end end @@ -42,8 +42,7 @@ Warden::Strategies.add(:secure_remote_password) do end def validate! - srp_session = session.delete(:handshake) - user = srp_session.authenticate(params['client_auth'].hex) + user = session[:handshake].authenticate(params['client_auth'].hex) user ? success!(user) : fail!(:password => "Could not log in") end |