diff options
author | jessib <jessib@riseup.net> | 2013-07-16 12:49:48 -0700 |
---|---|---|
committer | jessib <jessib@riseup.net> | 2013-07-16 12:49:48 -0700 |
commit | 97bd0ba4b35481216b2a1592065c70562c81c2d5 (patch) | |
tree | 036760e5427bbb32360cf9eb3ccbe80159d62695 /users/lib | |
parent | bf5922d26e27ee9695b07eade42d36a34b63fc4e (diff) | |
parent | 8486248a7a960bc75f25f2c5a00791416f124ac4 (diff) |
Merge pull request #60 from azul/bugfix/srp-fix-for-zeroprefixed-hashes
Bugfix/srp fix for zeroprefixed hashes
Diffstat (limited to 'users/lib')
-rw-r--r-- | users/lib/warden/strategies/secure_remote_password.rb | 4 |
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' |