From cd0b8bff2b358568fb826003193d3122751fab31 Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Wed, 11 Feb 2026 11:36:51 +1300 Subject: [PATCH] Add reset web password script --- scripts/reset-web-password.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 scripts/reset-web-password.js diff --git a/scripts/reset-web-password.js b/scripts/reset-web-password.js new file mode 100644 index 0000000..9131efb --- /dev/null +++ b/scripts/reset-web-password.js @@ -0,0 +1,17 @@ +// @ts-check + +const {reg, writeRegistration, registrationFilePath} = require("../src/matrix/read-registration") +const {prompt} = require("enquirer") + +;(async () => { + /** @type {{web_password: string}} */ + const passwordResponse = await prompt({ + type: "text", + name: "web_password", + message: "Choose a simple password (optional)" + }) + + reg.ooye.web_password = passwordResponse.web_password + writeRegistration(reg) + console.log("Saved. Restart Out Of Your Element to apply this change.") +})()