Skip to content

Commit

Permalink
simplify method
Browse files Browse the repository at this point in the history
  • Loading branch information
dougcole committed Apr 3, 2012
1 parent 9ba0148 commit 5c176f0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/rets/authentication.rb
Expand Up @@ -43,9 +43,7 @@ def calculate_digest(user, password, realm, nonce, method, uri, qop, cnonce, nc)
end end
end end


def calculate_user_agent_digest(user_agent, user_agent_password, rets_request_id, session_id, version) def calculate_user_agent_digest(product, user_agent_password, rets_request_id, session_id, version)
product = user_agent

a1 = Digest::MD5.hexdigest "#{product}:#{user_agent_password}" a1 = Digest::MD5.hexdigest "#{product}:#{user_agent_password}"


Digest::MD5.hexdigest "#{a1}:#{rets_request_id}:#{session_id}:#{version}" Digest::MD5.hexdigest "#{a1}:#{rets_request_id}:#{session_id}:#{version}"
Expand Down

0 comments on commit 5c176f0

Please sign in to comment.