Software /
code /
prosody
Changeset
5525:8e41b127e44e
Merge 0.9->trunk
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 27 Apr 2013 13:11:27 +0100 |
parents | 5523:8741bb69a786 (current diff) 5524:e9090966c803 (diff) |
children | 5528:2539e60cc070 |
files | |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/util/prosodyctl.lua Fri Apr 26 12:25:53 2013 +0100 +++ b/util/prosodyctl.lua Sat Apr 27 13:11:27 2013 +0100 @@ -140,11 +140,12 @@ if not host_session then return false, "no-such-host"; end + + storagemanager.initialize_host(host); local provider = host_session.users; if not(provider) or provider.name == "null" then usermanager.initialize_host(host); end - storagemanager.initialize_host(host); local ok, errmsg = usermanager.create_user(user, password, host); if not ok then @@ -155,11 +156,12 @@ function user_exists(params) local user, host, password = nodeprep(params.user), nameprep(params.host), params.password; + + storagemanager.initialize_host(host); local provider = prosody.hosts[host].users; if not(provider) or provider.name == "null" then usermanager.initialize_host(host); end - storagemanager.initialize_host(host); return usermanager.user_exists(user, host); end