Skip to content

fix: handle password reset checks without a password identity - #1411

Open
maniaba wants to merge 1 commit into
codeigniter4:developfrom
maniaba:fix/password-reset-without-local-identity
Open

maniaba wants to merge 1 commit into
codeigniter4:developfrom
maniaba:fix/password-reset-without-local-identity

Conversation

@maniaba

@maniaba maniaba commented Nov 23, 2026 •

Copy link
Copy Markdown

Summary

User::requiresPasswordReset() now returns false for a user without an email_password identity. The force-reset filter can then allow an authenticated user with no Shield password to reach the protected route. For users with an email/password identity, the existing force_reset flag still controls the result.

The password-reset guide documents this behavior. The regression tests cover both the user method and a request protected by the filter.

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

This branch has not been deployed

No deployments
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.

1 participant