From 3bac5046af2a4af1c2364e9ce6d1038b7052feb3 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sat, 4 Oct 2008 14:36:03 +0100 Subject: Fix for using wrong auth token as username (fixes Gajim login) --- util/sasl.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/sasl.lua') diff --git a/util/sasl.lua b/util/sasl.lua index 515bcf8a..dbd6326a 100644 --- a/util/sasl.lua +++ b/util/sasl.lua @@ -19,7 +19,7 @@ local function new_plain(onAuth, onSuccess, onFail, onWrite) 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 -- cgit v1.2.3