Mercurial > prosody-hg
diff plugins/mod_auth_internal_plain.lua @ 4060:52b437eb7059
mod_auth_internal_*: Support for delete_user method
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Tue, 04 Jan 2011 17:12:28 +0000 |
| parents | fe6f4a255fd8 |
| children | f08f649b898b |
line wrap: on
line diff
--- a/plugins/mod_auth_internal_plain.lua Tue Jan 04 17:11:51 2011 +0000 +++ b/plugins/mod_auth_internal_plain.lua Tue Jan 04 17:12:28 2011 +0000 @@ -62,6 +62,10 @@ function provider.create_user(username, password) return datamanager.store(username, host, "accounts", {password = password}); end + + function provider.delete_user(username) + return datamanager.store(username, host, "accounts", nil); + end function provider.get_sasl_handler() local realm = module:get_option("sasl_realm") or module.host;
