Software /
code /
prosody
Diff
util/prosodyctl.lua @ 5102:ae8a993b598d
util.prosodyctl: Use usermanager to delete users instead of unsetting their password
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 25 Aug 2012 01:33:01 +0200 |
parent | 5023:dcc8e789df36 |
child | 5379:27de7cc94111 |
line wrap: on
line diff
--- 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()