summaryrefslogtreecommitdiff
path: root/users/lib/warden/strategies/secure_remote_password.rb
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-07-16 12:32:43 +0200
committerAzul <azul@leap.se>2013-07-16 12:32:43 +0200
commit6e47ea438cf35c6cad00e65e2817cb57d07db111 (patch)
tree5d7c0450ec483d9e8b0f0f9af85df07cbe81b989 /users/lib/warden/strategies/secure_remote_password.rb
parent9abb7dd66cf44051662bc3b8663e6492dd6d9953 (diff)
use ruby-srp 0.2.0 which has a hex based api
Diffstat (limited to 'users/lib/warden/strategies/secure_remote_password.rb')
-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 a97e795..2c681be 100644
--- a/users/lib/warden/strategies/secure_remote_password.rb
+++ b/users/lib/warden/strategies/secure_remote_password.rb
@@ -36,7 +36,7 @@ module Warden
end
def validate
- session[:handshake].authenticate(params['client_auth'].hex)
+ session[:handshake].authenticate(params['client_auth'])
end
def initialize!
@@ -44,7 +44,7 @@ module Warden
client = SRP::Client.new user.username,
:verifier => user.verifier,
:salt => user.salt
- session[:handshake] = SRP::Session.new(client, params['A'].hex)
+ session[:handshake] = SRP::Session.new(client, params['A'])
custom! json_response(session[:handshake])
else
fail! :base => 'invalid_user_pass'