Software /
code /
prosody
Comparison
plugins/mod_auth_anonymous.lua @ 4948:2c1de519f639
Merge with backout
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 08 Jul 2012 18:48:28 +0100 |
parent | 4947:6d9317ea79b2 |
child | 5115:3939960b3c07 |
comparison
equal
deleted
inserted
replaced
4946:2975c7008ccd | 4948:2c1de519f639 |
---|---|
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 |