summaryrefslogtreecommitdiffstats
path: root/app/acf-util/password-model.lua
diff options
context:
space:
mode:
Diffstat (limited to 'app/acf-util/password-model.lua')
-rwxr-xr-xapp/acf-util/password-model.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/acf-util/password-model.lua b/app/acf-util/password-model.lua
index 7454d79..1e78e5d 100755
--- a/app/acf-util/password-model.lua
+++ b/app/acf-util/password-model.lua
@@ -116,5 +116,10 @@ function get_users(self)
end
function delete_user(self, userid)
- auth.delete_user(self, userid)
+ local result, errmessages = auth.delete_user(self, userid)
+ local value
+ if result then value = "User Deleted" else value = "Failed to Delete User" end
+ local errtxt
+ if #errmessages > 0 then errtxt = errmessages:concat("\n") end
+ return cfe({ value=value, errtxt=errtxt, label="Delete User Result" })
end