plugins/mod_admin_adhoc.lua
changeset 8195 4354f556c5db
parent 7048 49e2456bf2ce
child 8731 41c959c5c84b
--- a/plugins/mod_admin_adhoc.lua	Sun Aug 06 13:27:47 2017 +0200
+++ b/plugins/mod_admin_adhoc.lua	Fri Jul 28 13:15:29 2017 +0200
@@ -97,7 +97,7 @@
 	if module_host ~= host then
 		return { status = "completed", error = { message = "Trying to change the password of a user on " .. host .. " but command was sent to " .. module_host}};
 	end
-	if usermanager_user_exists(username, host) and usermanager_set_password(username, fields.password, host) then
+	if usermanager_user_exists(username, host) and usermanager_set_password(username, fields.password, host, nil) then
 		return { status = "completed", info = "Password successfully changed" };
 	else
 		return { status = "completed", error = { message = "User does not exist" } };