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

CC-26461 Backporting improvements to the password reset workflow #5

Closed
wants to merge 2 commits into from

Conversation

floriankraemer
Copy link

@floriankraemer floriankraemer commented Nov 30, 2023

Branch: backport/5.51.6
Ticket: https://spryker.atlassian.net/browse/CC-26461
Version: 5.51.6

  • Strategy: minor

Release Table

Module Release Type Constraint Updates
Customer patch

Module Customer

Change log

Improvements

  • Adjusted CustomerFacade::restorePassword() with the behavior that customer password resets expire after two hours.
  • Introduced CustomerConfig::isCustomerPasswordResetExpirationEnabled(): bool() to enable or disable the reset expiration. It is enabled by default.
  • Introduced CustomerConfig::getCustomerPasswordResetExpirationPeriod() to get a DateTime-compatible string to define the expiration threshold. The default is two hours.

@@ -505,6 +508,14 @@ public function restorePassword(CustomerTransfer $customerTransfer)
return $customerResponseTransfer;
}

$customerResponseTransfer = $this
Copy link
Contributor

Choose a reason for hiding this comment

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

the test file should be also copied from the original PR (Bundles/Customer/tests/SprykerTest/Zed/Customer/Business/Facade/RestorePasswordTest.php).

Copy link
Author

Choose a reason for hiding this comment

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

I thought we don't backport tests? 😕

Copy link
Contributor

Choose a reason for hiding this comment

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

we backporting all diffs

@dmiseev
Copy link
Contributor

dmiseev commented Nov 30, 2023

Module name in the changelogs is wrong (not a Kernel).

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

Successfully merging this pull request may close these issues.

2 participants