Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IBX-2880: Changed CredentialsExpiredListener to expect PasswordExpiredException #2045

Merged
merged 1 commit into from
May 24, 2022

Conversation

mateuszbieniek
Copy link
Contributor

@mateuszbieniek mateuszbieniek commented May 17, 2022

Question Answer
JIRA issue IBX-2880
Type bug
Target Ibexa version v3.3
BC breaks no

CredentialsExpiredListener expects CredentialsExpiredException which will never happen, as the Exception is immediately replaced with BadCredentialsException in https://github.com/symfony/security-core/blob/5.4/Authentication/Provider/UserAuthenticationProvider.php#L90

This PR adds changes CredentialsExpredListener to expect the PasswordExpiredException exception which extends CustomUserMessageAccountStatusException which allows it to set a proper "password expired" template.

Kernel part of PR: ezsystems/ezplatform-kernel#309

Checklist:

  • Provided PR description.
  • Tested the solution manually.
  • Checked that target branch is set correctly (master for features, the oldest supported for bugs).
  • Ran PHP CS Fixer for new PHP code (use $ composer fix-cs).
  • Asked for a review (ping @ezsystems/engineering-team).

@sonarcloud
Copy link

sonarcloud bot commented May 17, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
8 participants