Mercurial > prosody-hg
comparison plugins/mod_saslauth.lua @ 3178:46f5ed897beb
mod_saslauth: Fix log level
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Fri, 04 Jun 2010 13:55:39 +0100 |
| parents | 546695e80e0a |
| children | c690e3c5105c |
comparison
equal
deleted
inserted
replaced
| 3177:b932dde3bca5 | 3178:46f5ed897beb |
|---|---|
| 198 if usermanager_get_provider(realm).get_password then | 198 if usermanager_get_provider(realm).get_password then |
| 199 origin.sasl_handler = new_sasl(realm, getpass_authentication_profile); | 199 origin.sasl_handler = new_sasl(realm, getpass_authentication_profile); |
| 200 elseif usermanager_get_provider(realm).test_password then | 200 elseif usermanager_get_provider(realm).test_password then |
| 201 origin.sasl_handler = new_sasl(realm, testpass_authentication_profile); | 201 origin.sasl_handler = new_sasl(realm, testpass_authentication_profile); |
| 202 else | 202 else |
| 203 log("warning", "AUTH: Could not load an authentication profile for the given provider."); | 203 log("warn", "AUTH: Could not load an authentication profile for the given provider."); |
| 204 end | 204 end |
| 205 if not (module:get_option("allow_unencrypted_plain_auth")) and not origin.secure then | 205 if not (module:get_option("allow_unencrypted_plain_auth")) and not origin.secure then |
| 206 origin.sasl_handler:forbidden({"PLAIN"}); | 206 origin.sasl_handler:forbidden({"PLAIN"}); |
| 207 end | 207 end |
| 208 end | 208 end |
