Repository navigation
feat: change-password form on /account.html (climb to rung 2) - #17
Merged
Merged
Conversation
Adds a Password section to the account dashboard. Reveal-on-click form (current / new / confirm) that POSTs to JSS's PUT /idp/credentials via session.authFetch (DPoP-bound bearer). On success, shows "Password updated. You're on rung 2 now." Closes the climb path from issue #6's auth ladder. Form markup follows the documented standard for change-password forms (hidden username input with autocomplete="username", visible current-password + two new-password inputs). Chrome offers to save "me / <new password>" as a credential. Brave's password manager has stricter heuristics and may not prompt on http://localhost — known browser quirk, not a markup issue. Also tidies the Explore row on the dashboard: - swap /public/ and profile (now /public/ first) - lowercase "profile" (matches the URL-shaped sibling buttons) Bumps jspod to 0.0.19. Refs #1 #6
This was referenced May 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes the climb path from rung 1 (
me/me) to rung 2 (your own password) introduced in issue #6.Adds a Password section to the account dashboard. Click "Change password" → reveals form (Current / New / Confirm) → submit POSTs JSON
{currentPassword, newPassword}to JSS'sPUT /idp/credentialsviasession.authFetch(DPoP-bound). On success: green "Password updated. You're on rung 2 now." JSS persists the new password; oldmeno longer authenticates.Browser save-password integration
Form follows the standard documented pattern for change-password forms:
<input autocomplete="username" value="me">so the saved credential gets tagged with usernameme<input autocomplete="current-password"><input autocomplete="new-password">(new + confirm)Chrome: prompts "Update password?" with Username
mepopulated. ✓Brave: stricter password-manager heuristics on
http://localhost; doesn't always prompt. Known browser quirk, not a markup issue.Also in this PR (small)
/public/first, thenprofileTest plan
me/me→ /account.htmlmefails, new password works (verified by user)meusernameRefs #1 #6