From 20bf14939fbd75e3ee0206c2bf14737e2c7ac2c2 Mon Sep 17 00:00:00 2001 From: Azul Date: Thu, 28 Jun 2012 19:43:40 +0200 Subject: adopted srp algo to srp-js way of doing things. all large integers are now send as hex strings. Using sha256_str all over the place. This finally gives me successful logins. Needs a log of cleanup never the less. --- example/http-srp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'example/http-srp.rb') diff --git a/example/http-srp.rb b/example/http-srp.rb index e83036f..ef43844 100644 --- a/example/http-srp.rb +++ b/example/http-srp.rb @@ -23,7 +23,7 @@ post '/register/salt/' do end post '/register/user/' do - User.current.verifier = params.delete('v').to_i + User.current.verifier = params.delete('v').hex erb :ok, :layout => false, :content_type => :xml end -- cgit v1.2.3