From b04c66b95a95781173649712061e48f1508241f3 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 25 Aug 2012 01:33:01 +0200 Subject: util.prosodyctl: Use usermanager to delete users instead of unsetting their password --- util/prosodyctl.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util') 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() -- cgit v1.2.3