-
Notifications
You must be signed in to change notification settings - Fork 9.4k
magento/magento2#: Replace deprecated Magento\Customer\Model\Customer::isConfirmationRequired method #24334
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
Conversation
Hi @atwixfirster. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
98729bf
to
1d039e5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@atwixfirster, could you please also update the unit test for the session model?
@@ -805,7 +815,7 @@ public function isConfirmationRequired() | |||
*/ | |||
public function getRandomConfirmationKey() | |||
{ | |||
return md5(uniqid()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, keep as it is.
Just ignore this rule:
// phpcs:ignore Magento2.Security.InsecureFunction
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…::isConfirmationRequired method
1d039e5
to
3d03cb4
Compare
Hi @atwixfirster |
Hi @atwixfirster, thank you for your contribution! |
Description (*)
During new customer registration
Magento\Customer\Model\ResourceModel\Customer
model uses deprecatedMagento\Customer\Model\Customer
::isConfirmationRequired
in the_beforeSave()
method.Fixed Issues (if relevant)
Manual testing scenarios (*)
Preconditions
Require Emails Confirmation
option toYes
on back-end sideSteps to reproduce
Create new customer
You will get a confirmation link in the email
Expected result: customer should get a confirmation email
Questions or comments
Contribution checklist (*)
Thank you!