diff --git a/files/app/main/firstuse.ut b/files/app/main/firstuse.ut
index 83b70ff7..b480687b 100755
--- a/files/app/main/firstuse.ut
+++ b/files/app/main/firstuse.ut
@@ -74,18 +74,18 @@ if (request.env.REQUEST_METHOD === "PUT") {
Enter a password, twice, to assign to your node for access to configuration information later
-
+
@@ -107,17 +107,17 @@ if (request.env.REQUEST_METHOD === "PUT") {
passwd2.required = passwd1.value ? "required" : "";
passwd2.pattern = passwd1.value;
if (name.validity.valid && passwd1.validity.valid && passwd2.validity.valid) {
- htmx.find("button").disabled = false;
+ htmx.find("button.save").disabled = false;
}
else {
- htmx.find("button").disabled = true;
+ htmx.find("button.save").disabled = true;
}
}
htmx.on("input[name=name]", "keyup", change);
htmx.on("input[name=passwd1]", "keyup", change);
htmx.on("input[name=passwd2]", "keyup", change);
htmx.on("button", "click", _ => {
- htmx.find("button").disabled = true;
+ htmx.find("button.save").disabled = true;
htmx.ajax("PUT", "{{request.env.REQUEST_URI}}", {
values: {
name: htmx.find("input[name=name]").value,
@@ -128,5 +128,6 @@ if (request.env.REQUEST_METHOD === "PUT") {
});
})();
+ {{_R("password-ctrl")}}