aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/mod_admin_shell.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua
index 8c6bab9d..c652fa96 100644
--- a/plugins/mod_admin_shell.lua
+++ b/plugins/mod_admin_shell.lua
@@ -1533,6 +1533,11 @@ function def_env.user:create(jid, password, role)
if not ok then
return nil, "Could not set password for user: "..err;
end
+
+ local ok, err = um.enable_user(username, host);
+ if not ok and err ~= "method-not-implemented" then
+ return nil, "Could not enable user: "..err;
+ end
end
else
local ok, err = um.create_user(username, password, host);