# HG changeset patch # User Kim Alvefur # Date 1345851181 -7200 # Node ID ae8a993b598dc955eb68522738b2a1d463353145 # Parent a94c43cad0818812a5ca9e5bc77c7ea3fbc61bf5 util.prosodyctl: Use usermanager to delete users instead of unsetting their password diff -r a94c43cad081 -r ae8a993b598d util/prosodyctl.lua --- a/util/prosodyctl.lua Sat Aug 25 01:32:26 2012 +0200 +++ b/util/prosodyctl.lua Sat Aug 25 01:33:01 2012 +0200 @@ -176,9 +176,9 @@ 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()