lib/xmpp4r/sasl.rb in xmpp4r-0.5 vs lib/xmpp4r/sasl.rb in xmpp4r-0.5.5
- old
+ new
@@ -175,10 +175,10 @@
response['realm'] = @realm || @stream.jid.domain
response['cnonce'] = generate_nonce
response['nc'] = '00000001'
response['qop'] = 'auth'
response['digest-uri'] = "xmpp/#{@stream.jid.domain}"
- response['response'] = response_value(@stream.jid.node, @stream.jid.domain, response['digest-uri'], password, @nonce, response['cnonce'], response['qop'], response['authzid'])
+ response['response'] = response_value(@stream.jid.node, response['realm'], response['digest-uri'], password, @nonce, response['cnonce'], response['qop'], response['authzid'])
response.each { |key,value|
unless %w(nc qop response charset).include? key
response[key] = "\"#{value}\""
end
}