From 81cf09e4d8487aeb2c9f9deea8f71c828a88a5c0 Mon Sep 17 00:00:00 2001 From: Melvin Carvalho Date: Sat, 16 May 2026 09:26:31 +0200 Subject: [PATCH] feat: warn on /account.html when password is still default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On page load, /account.html now probes JSS's PUT /idp/credentials with {currentPassword:"me", newPassword:"me"} via session.authFetch. - 204 (current matches) → red warning banner above the password form: "You're using the default password. Change it below to claim your pod." - 401 (current doesn't match) → no banner. The probe is server-side truth (no localStorage state to go stale across browsers). Side effect is a bcrypt re-hash of the same value when the password is still default — rate-limited 10/min per IP by JSS, no functional change. After a successful password update, the warning is hidden synchronously (no reload needed). On subsequent loads the probe sees 401 and the warning stays gone. Refs #1 #6 --- account.html | 27 +++++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/account.html b/account.html index 04f9e24..cc80f4d 100644 --- a/account.html +++ b/account.html @@ -49,6 +49,9 @@

Explore

Password

+

Climb from rung 1 (default me) to rung 2 (your password).