Mercurial > prosody-hg
diff plugins/mod_saslauth.lua @ 4494:694491140a67
Merge with 0.9
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 26 Jan 2012 18:48:21 +0000 |
| parents | 0a4781f165e3 |
| children | 55b61221ecb8 |
line wrap: on
line diff
--- a/plugins/mod_saslauth.lua Thu Jan 26 18:47:59 2012 +0000 +++ b/plugins/mod_saslauth.lua Thu Jan 26 18:48:21 2012 +0000 @@ -191,8 +191,10 @@ session.from_host = text; end session.sends2s(build_reply("success")) - module:log("info", "Accepting SASL EXTERNAL identity from %s", text or session.from_host); - s2s_make_authenticated(session, text or session.from_host) + + local domain = text ~= "" and text or session.from_host; + module:log("info", "Accepting SASL EXTERNAL identity from %s", domain); + s2s_make_authenticated(session, domain); session:reset_stream(); return true end
