diff options
author | Kim Alvefur <zash@zash.se> | 2012-08-25 01:33:01 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2012-08-25 01:33:01 +0200 |
commit | b04c66b95a95781173649712061e48f1508241f3 (patch) | |
tree | 822815debf4d3af3f9894ef9e14367b158a12d86 /util/prosodyctl.lua | |
parent | d5266582d19675b3e44ca9f895fd8820d5f103c0 (diff) | |
download | prosody-b04c66b95a95781173649712061e48f1508241f3.tar.gz prosody-b04c66b95a95781173649712061e48f1508241f3.zip |
util.prosodyctl: Use usermanager to delete users instead of unsetting their password
Diffstat (limited to 'util/prosodyctl.lua')
-rw-r--r-- | util/prosodyctl.lua | 4 |
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() |