89799969 opened a new pull request, #5066:
URL: https://github.com/apache/rocketmq-dashboard/pull/5066

   <!-- Make sure the base branch is `master`: that is the RocketMQ Studio 
trunk. -->
   
   ### Which Issue(s) This PR Fixes
   
   <!-- Link the issue with a keyword so it closes on merge. Trivial fixes need 
no issue.
        
https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue
 -->
   
   - Fixes #5064
   
   ### Brief Description
   
   Cancelling the create Studio user dialog only closed the modal. The password 
dialog already resets on cancel; the create dialog did not. After typing a 
password and enabling admin and then cancelling, the next open still showed 
those values — a residual-secret / residual-privilege risk if the operator 
confirms by mistake.
   
   - `openCreateUserModal`: `createForm.resetFields()` before opening
   - Modal `onCancel`: close and `createForm.resetFields()`
   - Regression test: open -> type -> cancel -> reopen -> assert fields are 
empty
   
   Resubmit of #4474 / earlier #4351 (auto-closed by the 7-day stale bot while 
waiting for human review). Same defect as #4252 (that issue was also 
auto-closed and cannot be reopened by the author).
   
   ### How Did You Test This Change?
   
   - Extended `UserManagement.test.tsx` (open dialog, type, cancel, reopen, 
assert username/password/admin reset)
   - `cd web && npm test` focused page tests green
   
   ### Checklist
   
   - [x] One coherent change; unrelated modifications are not bundled in
   - [x] Commit subject follows Conventional Commits (`feat:` / `fix:` / 
`refactor:` / `chore:` / `docs:` / `perf:`)
   - [x] Tests added or updated for non-trivial changes, test methods named 
`...Test`
   - [ ] New UI text has both Chinese and English entries under `web/src/i18n/`
   - [x] Architecture constraints stay green (`mvn test` runs the ArchUnit 
checks)
   - [ ] New source files carry the ASF license header
   - [ ] Documentation touched where behaviour changed (README / `docs/` / 
in-app help)
   
   ### AI disclosure
   
   Implemented with the assistance of an AI coding agent.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to