Diff

util/prosodyctl/shell.lua @ 13797:c0ef5d089e76

Merge 13.0->trunk
author Matthew Wild <mwild1@gmail.com>
date Mon, 31 Mar 2025 17:32:11 +0100
parent 13796:c8e534b4f2e2
line wrap: on
line diff
--- a/util/prosodyctl/shell.lua	Mon Mar 31 16:43:06 2025 +0100
+++ b/util/prosodyctl/shell.lua	Mon Mar 31 17:32:11 2025 +0100
@@ -134,7 +134,11 @@
 		end
 		if stanza.attr.type == "password" then
 			local password = human_io.read_password();
-			client.send(st.stanza("repl-requested-input", { type = stanza.attr.type, id = stanza.attr.id }):text(password));
+			client.send(st.stanza("repl-requested-input", {
+				type = stanza.attr.type;
+				id = stanza.attr.id;
+				status = password and "submit" or "cancel";
+			}):text(password or ""));
 		else
 			io.stderr:write("Internal error - unexpected input request type "..tostring(stanza.attr.type).."\n");
 			os.exit(1);