aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-05-05 16:37:17 +0100
committerMatthew Wild <mwild1@gmail.com>2009-05-05 16:37:17 +0100
commit6b739c8d9ad38274ed46f718e6ec77f6c550c3f0 (patch)
tree2ab76c63ebaccd9433542a34c9379ef654a161c8 /util
parentb504f873e7bf2ab6bd62c9ae18241c72fe5e583f (diff)
downloadprosody-6b739c8d9ad38274ed46f718e6ec77f6c550c3f0.tar.gz
prosody-6b739c8d9ad38274ed46f718e6ec77f6c550c3f0.zip
util.prosodyctl: Return success status of usermanager.create_user()
Diffstat (limited to 'util')
-rw-r--r--util/prosodyctl.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/util/prosodyctl.lua b/util/prosodyctl.lua
index 4c6b6ea4..3b523a78 100644
--- a/util/prosodyctl.lua
+++ b/util/prosodyctl.lua
@@ -19,7 +19,10 @@ function adduser(params)
return false, "invalid-hostname";
end
- usermanager.create_user(user, password, host);
+ local ok = usermanager.create_user(user, password, host);
+ if not ok then
+ return false, "unable-to-save-data";
+ end
return true;
end