Skip to content

fix: allow special characters in passwords for user creation#1123

Merged
JohnVillalovos merged 1 commit intodevelopfrom
jlvillal/issue_1096
Mar 8, 2026
Merged

fix: allow special characters in passwords for user creation#1123
JohnVillalovos merged 1 commit intodevelopfrom
jlvillal/issue_1096

Conversation

@JohnVillalovos
Copy link
Collaborator

When creating a user, using a password with special characters would not work.

Also add better instructions to AGENTS.md about test file naming.

Closes: #1096

Copilot AI review requested due to automatic review settings March 8, 2026 02:38
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes password handling so special characters (notably &) are preserved when creating/authenticating users, and updates contributor guidance on test naming.

Changes:

  • Use GetRawForm(FormKeys::PASSWORD) instead of GetForm(...) when reading passwords in ManageUsersPage and ResourceDisplayPage.
  • Add PHPUnit coverage to ensure trailing ampersands in passwords are preserved from $_POST.
  • Document test file/class naming expectations in AGENTS.md.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
Pages/Admin/ManageUsersPage.php Reads password via raw form input to avoid htmlspecialchars mutation.
Pages/ResourceDisplayPage.php Reads password via raw form input for resource-display login flow.
tests/Pages/Admin/ManageUsersPageTest.php Adds regression test for preserving & in passwords.
tests/Pages/ResourceDisplayPageTest.php Adds regression test for preserving & in passwords.
AGENTS.md Adds clearer guidance on test file/class naming and organization.

You can also share your feedback on Copilot code review. Take the survey.

@JohnVillalovos JohnVillalovos force-pushed the jlvillal/issue_1096 branch 2 times, most recently from 8e2bc91 to fa045b0 Compare March 8, 2026 02:53
@JohnVillalovos JohnVillalovos requested a review from Copilot March 8, 2026 02:54
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 35 out of 35 changed files in this pull request and generated 33 comments.


You can also share your feedback on Copilot code review. Take the survey.

When creating a user, using a password with special characters would not
work.

Also add better instructions to AGENTS.md about test file naming.

Closes: #1096
@JohnVillalovos JohnVillalovos merged commit a903be1 into develop Mar 8, 2026
15 checks passed
@JohnVillalovos JohnVillalovos deleted the jlvillal/issue_1096 branch March 8, 2026 03:21
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.

Password which contain an ampersand

2 participants