Comparison

core/usermanager.lua @ 5157:0e1686f334b8

usermanager: Add support for iterating over accounts
author Kim Alvefur <zash@zash.se>
date Fri, 21 Sep 2012 17:26:25 +0200
parent 5129:e8253c931166
child 5377:898454038524
comparison
equal deleted inserted replaced
5156:6b08c922a2e4 5157:0e1686f334b8
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.purge(username, host); 96 return storagemanager.purge(username, host);
97 end 97 end
98 98
99 function users(host)
100 return hosts[host].users.users();
101 end
102
99 function get_sasl_handler(host, session) 103 function get_sasl_handler(host, session)
100 return hosts[host].users.get_sasl_handler(session); 104 return hosts[host].users.get_sasl_handler(session);
101 end 105 end
102 106
103 function get_provider(host) 107 function get_provider(host)