Log in
Model

AccountConfirmation

Magento\Customer\Model\AccountConfirmation

What it does

This class determines whether email confirmation is required for customer accounts in Magento 2.

Developers use it to check if confirmation emails should be sent when creating new customer accounts or when customers change their email addresses.

It respects store configuration settings and can skip confirmation in specific scenarios, such as when a customer completes registration with the same email used to initiate the process.

Public Methods

  • isConfirmationRequired()
  • isEmailChangedConfirmationRequired()
  • isCustomerEmailChangedConfirmRequired()