Log in
Model

ConfirmCustomerByToken

Magento\Customer\Model\ForgotPasswordToken\ConfirmCustomerByToken

What it does

This class handles customer account confirmation during the password reset process in Magento 2.

Developers use this class when they need to automatically confirm a customer's account when they use a valid password reset token, removing the need for separate email confirmation.

It's typically invoked during the forgot password flow to streamline the account activation process.

Public Methods

  • execute()
  • resetCustomerConfirmation()