Add current password field to self-service password change forms#741
Add current password field to self-service password change forms#741sushantpatil1214 wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
WalkthroughProfile and user-modal password changes now collect a current password, validate it for applicable updates, and include it in API update payloads. The profile and modal templates expose conditional current-password fields, with the profile test updated accordingly. ChangesPassword change flow
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant ProfileForm
participant ProfileCtrl
participant ApiUsers
ProfileForm->>ProfileCtrl: submit current and new passwords
ProfileCtrl->>ProfileCtrl: validate current password
ProfileCtrl->>ApiUsers: update user credentials
sequenceDiagram
participant UsersModal
participant UsersModalCtrl
participant LocalStorage
participant ApiUsers
UsersModalCtrl->>LocalStorage: read consoleSession
UsersModal->>UsersModalCtrl: submit current and new passwords
UsersModalCtrl->>UsersModalCtrl: validate self-update password
UsersModalCtrl->>ApiUsers: update user credentials
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Add current password field to self-service password change forms
Backend now requires and verifies the account's current password
before accepting a new one. Add the corresponding "Current Password"
input and validation to the Profile page and to the admin Users modal
(shown there only when an admin edits their own account).
Summary by CodeRabbit
New Features
Tests