Fix for using wrong auth token as username (fixes Gajim login)

Sat, 04 Oct 2008 14:36:03 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Sat, 04 Oct 2008 14:36:03 +0100
changeset 50
56272224ca4c
parent 49
1cd2a8db392d
child 52
93e468eb2ffb

Fix for using wrong auth token as username (fixes Gajim login)

util/sasl.lua file | annotate | diff | comparison | revisions
--- a/util/sasl.lua	Sat Oct 04 02:43:23 2008 +0100
+++ b/util/sasl.lua	Sat Oct 04 14:36:03 2008 +0100
@@ -19,7 +19,7 @@
 						local authorization = s_match(response, "([^&%z]+)")
 						local authentication = s_match(response, "%z([^&%z]+)%z")
 						local password = s_match(response, "%z[^&%z]+%z([^&%z]+)")
-						if self.onAuth(authorization, password) == true then
+						if self.onAuth(authentication, password) == true then
 							self.onWrite(st.stanza("success", {xmlns = "urn:ietf:params:xml:ns:xmpp-sasl"}))
 							self.onSuccess(authentication)
 						else

mercurial