Mercurial > prosody-hg
comparison plugins/mod_auth_anonymous.lua @ 4947:6d9317ea79b2
Backed out changeset 72a2eec4204a (incomplete fix)
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sun, 08 Jul 2012 18:48:22 +0100 |
| parents | 72a2eec4204a |
| children | 3939960b3c07 |
comparison
equal
deleted
inserted
replaced
| 4944:72a2eec4204a | 4947:6d9317ea79b2 |
|---|---|
| 30 | 30 |
| 31 function provider.create_user(username, password) | 31 function provider.create_user(username, password) |
| 32 return nil, "Account creation/modification not supported."; | 32 return nil, "Account creation/modification not supported."; |
| 33 end | 33 end |
| 34 | 34 |
| 35 function provider.get_sasl_handler(session) | 35 function provider.get_sasl_handler() |
| 36 local anonymous_authentication_profile = { | 36 local anonymous_authentication_profile = { |
| 37 anonymous = function(sasl, username, realm) | 37 anonymous = function(sasl, username, realm) |
| 38 session.roster = {}; -- so that the null storage backend doesn't upset rostermanager | |
| 39 return true; -- for normal usage you should always return true here | 38 return true; -- for normal usage you should always return true here |
| 40 end | 39 end |
| 41 }; | 40 }; |
| 42 return new_sasl(module.host, anonymous_authentication_profile); | 41 return new_sasl(module.host, anonymous_authentication_profile); |
| 43 end | 42 end |
