Software /
code /
prosody
Diff
core/usermanager.lua @ 5129:e8253c931166
storagemanager: Add purge() for purging user data from all backends in use
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 16 Sep 2012 02:18:07 +0200 |
parent | 5094:e646c849d72f |
child | 5157:0e1686f334b8 |
line wrap: on
line diff
--- a/core/usermanager.lua Sat Sep 15 23:00:59 2012 +0200 +++ b/core/usermanager.lua Sun Sep 16 02:18:07 2012 +0200 @@ -93,7 +93,7 @@ local ok, err = hosts[host].users.delete_user(username); if not ok then return nil, err; end prosody.events.fire_event("user-deleted", { username = username, host = host }); - return storagemanager.get_driver(host):purge(username); + return storagemanager.purge(username, host); end function get_sasl_handler(host, session)