Software /
code /
prosody
Changeset
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 |
parents | 5101:a94c43cad081 |
children | 5103:5a1488369c35 |
files | util/prosodyctl.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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()