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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user