diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-08-23 16:42:27 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-08-23 16:42:27 +0500 |
commit | 06fbe2e85325a81cff5f2ddf816ebaf4925364c6 (patch) | |
tree | 534811725c6aa5f62045b554ace2c72891c14e85 /util | |
parent | 90ed40bac6bef1c9e6dbd1e7d04b3f50f9464ab4 (diff) | |
download | prosody-06fbe2e85325a81cff5f2ddf816ebaf4925364c6.tar.gz prosody-06fbe2e85325a81cff5f2ddf816ebaf4925364c6.zip |
util.sasl_cyrus: Spaces -> tabs.
Diffstat (limited to 'util')
-rw-r--r-- | util/sasl_cyrus.lua | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/util/sasl_cyrus.lua b/util/sasl_cyrus.lua index 2e5b96c0..3ec8adca 100644 --- a/util/sasl_cyrus.lua +++ b/util/sasl_cyrus.lua @@ -143,17 +143,17 @@ function method:process(message) self.username = cyrussasl.get_username(self.cyrus) if (err == 0) then -- SASL_OK - return "success", data + return "success", data elseif (err == 1) then -- SASL_CONTINUE - return "challenge", data + return "challenge", data elseif (err == -4) then -- SASL_NOMECH - log("debug", "SASL mechanism not available from remote end") - return "failure", "invalid-mechanism", "SASL mechanism not available" + log("debug", "SASL mechanism not available from remote end") + return "failure", "invalid-mechanism", "SASL mechanism not available" elseif (err == -13) then -- SASL_BADAUTH - return "failure", "not-authorized", sasl_errstring[err]; + return "failure", "not-authorized", sasl_errstring[err]; else - log("debug", "Got SASL error condition %d: %s", err, sasl_errstring[err]); - return "failure", "undefined-condition", sasl_errstring[err]; + log("debug", "Got SASL error condition %d: %s", err, sasl_errstring[err]); + return "failure", "undefined-condition", sasl_errstring[err]; end end |