Add self-service password change + forgot-password guidance

- Logged-in users can change their own password from a "Password" link
  in the top-right pill (dialog -> POST /api/auth/password, which requires
  the current password).
- Login page gains a "Forgot password?" link explaining that resets are
  admin-assisted (admins reset from the console). No SMTP, so no email
  reset flow yet.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-30 13:20:49 -07:00
parent 5ad3ffa58e
commit eefa76e460
3 changed files with 79 additions and 0 deletions

View File

@@ -25,6 +25,15 @@
errorBox.classList.add('show');
}
var forgot = document.getElementById('forgot-link');
if (forgot) {
forgot.addEventListener('click', function (e) {
e.preventDefault();
var m = document.getElementById('forgot-msg');
if (m) m.style.display = 'block';
});
}
form.addEventListener('submit', function (e) {
e.preventDefault();
errorBox.classList.remove('show');