Skip to content

Fix PHP warning when resetting password. - #4418

Merged
TomJaeger merged 1 commit into
7.devfrom
bugfix/7x/phpvalidpassword
Jun 16, 2025
Merged

Fix PHP warning when resetting password.#4418
TomJaeger merged 1 commit into
7.devfrom
bugfix/7x/phpvalidpassword

Conversation

@robinsowell

Copy link
Copy Markdown
Contributor

PHP 8, when you reset the password on the frontend, you can get a

Severity: E_WARNING --> Undefined array key "username" /Users/robinsowell/Sites/6.1.5/system/ee/ExpressionEngine/Service/Validation/Rule/ValidPassword.php 41

May/may not show depending on redirects, but user saw the error and I see it in my logs. Username isn't set when submitting the password change form.

Alternative fix would be to go get the username when missing.

PHP 8, when you reset the password on the frontend, you can get a 

Severity: E_WARNING  --> Undefined array key "username" /Users/robinsowell/Sites/6.1.5/system/ee/ExpressionEngine/Service/Validation/Rule/ValidPassword.php 41

May/may not show depending on redirects, but user saw the error and I see it in my logs.  Username isn't set when submitting the password change form.

Alternative fix would be to go get the username when missing.
@intoeetive

Copy link
Copy Markdown
Contributor

@robinsowell did you mean to submit a PR for this as well?

@intoeetive intoeetive added this to the 7.5.13 milestone May 18, 2025
@TomJaeger
TomJaeger merged commit 6cc8d1d into 7.dev Jun 16, 2025
@TomJaeger
TomJaeger deleted the bugfix/7x/phpvalidpassword branch June 16, 2025 14:33
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.

3 participants