From 5c80ee1010d87e3efbe06c75039486043e8a1862 Mon Sep 17 00:00:00 2001 From: BoulderBadgeDad Date: Wed, 10 Jun 2026 22:28:07 -0700 Subject: [PATCH] Login recovery (UI): Settings setup + "Forgot password?" on the login screen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Settings → Security: a recovery-question picker (5 presets + Custom) + answer field + Save, posting to /api/profiles/1/set-recovery. handleRecoveryQuestionChange reveals the custom box. - Login screen: a "Forgot password?" link opens a recovery view — enter username → fetch your question → answer + new password → reset → reload signed in. Reuses the launch-PIN overlay styling/structure (entry + recovery views). All inert unless login mode is on, so a default/LAN install never sees any of it. 64 script-split integrity tests pass (every new handler resolves). --- webui/index.html | 54 ++++++++++++++++++++++---- webui/static/init.js | 91 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 138 insertions(+), 7 deletions(-) diff --git a/webui/index.html b/webui/index.html index 4bbf1510..8da0f94a 100644 --- a/webui/index.html +++ b/webui/index.html @@ -54,13 +54,33 @@ @@ -6040,6 +6060,26 @@ +
+ +
+ Lets you reset a forgotten login password by answering this. Recommended if you enable login. (You can set one per profile in Manage Profiles too.) +
+ + + + + +
+