Comparison

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
comparison
equal deleted inserted replaced
5128:834ab74585ec 5129:e8253c931166
91 91
92 function delete_user(username, host) 92 function delete_user(username, host)
93 local ok, err = hosts[host].users.delete_user(username); 93 local ok, err = hosts[host].users.delete_user(username);
94 if not ok then return nil, err; end 94 if not ok then return nil, err; end
95 prosody.events.fire_event("user-deleted", { username = username, host = host }); 95 prosody.events.fire_event("user-deleted", { username = username, host = host });
96 return storagemanager.get_driver(host):purge(username); 96 return storagemanager.purge(username, host);
97 end 97 end
98 98
99 function get_sasl_handler(host, session) 99 function get_sasl_handler(host, session)
100 return hosts[host].users.get_sasl_handler(session); 100 return hosts[host].users.get_sasl_handler(session);
101 end 101 end