diff options
Diffstat (limited to 'plugins/mod_auth_internal_plain.lua')
-rw-r--r-- | plugins/mod_auth_internal_plain.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mod_auth_internal_plain.lua b/plugins/mod_auth_internal_plain.lua index 3721781b..ccaf8381 100644 --- a/plugins/mod_auth_internal_plain.lua +++ b/plugins/mod_auth_internal_plain.lua @@ -62,6 +62,10 @@ function new_default_provider(host) 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; |