Skip to content

2702 - Fix Edit User password requirement#2703

Merged
crivetimihai merged 1 commit intomainfrom
2702-user-edit-pw-check
Feb 6, 2026
Merged

2702 - Fix Edit User password requirement#2703
crivetimihai merged 1 commit intomainfrom
2702-user-edit-pw-check

Conversation

@gcgoncalves
Copy link
Copy Markdown
Collaborator

@gcgoncalves gcgoncalves commented Feb 4, 2026

🐛 Bug-fix PR

Screen.Recording.2026-02-04.at.16.37.27.mov

📌 Summary

Password requirement icons in the Edit User modal do not update when typing in the password field. The icons remain gray (✗) even when password requirements are met, while the Create User form works correctly.

Closes #2702

🔁 Reproduction Steps

  1. Navigate to the Admin UI
  2. Go to the Users section
  3. Click "Edit" on any existing user
  4. In the Edit User modal, start typing in the "New Password" field
  5. Observe that password requirement icons remain unchanged (gray ✗)

🐞 Root Cause

The Edit User modal's password requirement icons remained unchanged when typing because both Create User and Edit User forms used identical element IDs (req-length, req-uppercase, etc.). When JavaScript called document.getElementById(), it returned the Create form's elements instead of the Edit form's elements.

💡 Fix Description

Renamed Edit User form element IDs to use 'edit-' prefix to ensure uniqueness and updated the corresponding JavaScript functions in admin.js to reference the new IDs.

🧪 Verification

Check Command Status
Lint suite make lint
Unit tests make test
Coverage ≥ 80 % make coverage
Manual regression no longer fails steps / screenshots

✅ Checklist

  • Code formatted (make black isort pre-commit)
  • No secrets/credentials committed

@gcgoncalves gcgoncalves marked this pull request as ready for review February 4, 2026 20:32
Copy link
Copy Markdown
Collaborator

@marekdano marekdano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and I'm confirming the fix. The requirement icons are changed to green when the requirements are met.

LGTM

@gcgoncalves gcgoncalves force-pushed the 2702-user-edit-pw-check branch from c3474b0 to 298a2d6 Compare February 5, 2026 16:21
@gcgoncalves gcgoncalves requested a review from marekdano February 5, 2026 16:22
The Edit User modal's password requirement icons remained unchanged when
typing because both Create User and Edit User forms used identical
element IDs (req-length, req-uppercase, etc.). When JavaScript called
document.getElementById(), it returned the Create form's elements
instead of the Edit form's elements.

Renamed Edit User form element IDs to use 'edit-' prefix to ensure
uniqueness and updated the corresponding JavaScript functions in
admin.js to reference the new IDs.

Closes #2702

Signed-off-by: Gabriel Costa <gabrielcg@proton.me>
@crivetimihai crivetimihai force-pushed the 2702-user-edit-pw-check branch from 298a2d6 to 8c60513 Compare February 6, 2026 18:49
@crivetimihai crivetimihai merged commit a241e9f into main Feb 6, 2026
51 checks passed
@crivetimihai crivetimihai deleted the 2702-user-edit-pw-check branch February 6, 2026 21:01
kcostell06 pushed a commit to kcostell06/mcp-context-forge that referenced this pull request Feb 24, 2026
The Edit User modal's password requirement icons remained unchanged when
typing because both Create User and Edit User forms used identical
element IDs (req-length, req-uppercase, etc.). When JavaScript called
document.getElementById(), it returned the Create form's elements
instead of the Edit form's elements.

Renamed Edit User form element IDs to use 'edit-' prefix to ensure
uniqueness and updated the corresponding JavaScript functions in
admin.js to reference the new IDs.

Closes IBM#2702

Signed-off-by: Gabriel Costa <gabrielcg@proton.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: Password requirements checker not working on user edit

3 participants