aboutsummaryrefslogtreecommitdiffstats
path: root/util/prosodyctl.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2012-08-25 01:33:01 +0200
committerKim Alvefur <zash@zash.se>2012-08-25 01:33:01 +0200
commitfebff04cfd53755194c4460aad3c1199ac68c87f (patch)
tree822815debf4d3af3f9894ef9e14367b158a12d86 /util/prosodyctl.lua
parentae8b24b1967c32a5c03c77348b89263e366d5b69 (diff)
downloadprosody-febff04cfd53755194c4460aad3c1199ac68c87f.tar.gz
prosody-febff04cfd53755194c4460aad3c1199ac68c87f.zip
util.prosodyctl: Use usermanager to delete users instead of unsetting their password
Diffstat (limited to 'util/prosodyctl.lua')
-rw-r--r--util/prosodyctl.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/prosodyctl.lua b/util/prosodyctl.lua
index a598a44a..e38f85d4 100644
--- a/util/prosodyctl.lua
+++ b/util/prosodyctl.lua
@@ -176,9 +176,9 @@ function deluser(params)
if not _M.user_exists(params) then
return false, "no-such-user";
end
- params.password = nil;
+ local user, host = nodeprep(params.user), nameprep(params.host);
- return _M.adduser(params);
+ return usermanager.delete_user(user, host);
end
function getpid()