aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-10-04 14:36:03 +0100
committerMatthew Wild <mwild1@gmail.com>2008-10-04 14:36:03 +0100
commit3bac5046af2a4af1c2364e9ce6d1038b7052feb3 (patch)
tree51f2e335ceae8aad171380affe4f7b4c7349e99c /util
parent0f8ba47525595a9432b4060204d943cfb26bdc61 (diff)
downloadprosody-3bac5046af2a4af1c2364e9ce6d1038b7052feb3.tar.gz
prosody-3bac5046af2a4af1c2364e9ce6d1038b7052feb3.zip
Fix for using wrong auth token as username (fixes Gajim login)
Diffstat (limited to 'util')
-rw-r--r--util/sasl.lua2
1 files changed, 1 insertions, 1 deletions
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