From 6e47ea438cf35c6cad00e65e2817cb57d07db111 Mon Sep 17 00:00:00 2001 From: Azul Date: Tue, 16 Jul 2013 12:32:43 +0200 Subject: use ruby-srp 0.2.0 which has a hex based api --- users/lib/warden/strategies/secure_remote_password.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'users/lib/warden/strategies') 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' -- cgit v1.2.3