Backed out changeset 72a2eec4204a (incomplete fix)
authorMatthew Wild <mwild1@gmail.com>
Sun, 8 Jul 2012 17:48:22 +0000 (18:48 +0100)
committerMatthew Wild <mwild1@gmail.com>
Sun, 8 Jul 2012 17:48:22 +0000 (18:48 +0100)
plugins/mod_auth_anonymous.lua

index 3cb7cf98b2cbb9bc8d8fdd3a806a3486bcffbddc..c080177d5fb4ebfeac62044224de0133bb6338f5 100644 (file)
@@ -32,10 +32,9 @@ function new_default_provider(host)
                return nil, "Account creation/modification not supported.";
        end
 
-       function provider.get_sasl_handler(session)
+       function provider.get_sasl_handler()
                local anonymous_authentication_profile = {
                        anonymous = function(sasl, username, realm)
-                               session.roster = {}; -- so that the null storage backend doesn't upset rostermanager
                                return true; -- for normal usage you should always return true here
                        end
                };