# HG changeset patch # User Kim Alvefur # Date 1341625351 -7200 # Node ID 72a2eec4204abe85d9bf37374fc5f3696886456a # Parent 50f63f07245f92500b7e933360727d96fbcc6e2c mod_auth_anonymous: Attach a fake roster to the session, so the null storage backend can be used diff -r 50f63f07245f -r 72a2eec4204a plugins/mod_auth_anonymous.lua --- a/plugins/mod_auth_anonymous.lua Sat Jul 07 02:32:39 2012 +0100 +++ b/plugins/mod_auth_anonymous.lua Sat Jul 07 03:42:31 2012 +0200 @@ -32,9 +32,10 @@ return nil, "Account creation/modification not supported."; end - function provider.get_sasl_handler() + function provider.get_sasl_handler(session) 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 };