Log in
Model

GetCustomerByToken

Magento\Customer\Model\ForgotPasswordToken\GetCustomerByToken

What it does

This class retrieves a customer account using a password reset token.

Developers would use this when implementing password reset functionality to validate the token and fetch the associated customer before allowing them to set a new password.

Note that this class is deprecated as reset password tokens should not be looked up directly for security reasons.

Public Methods

  • execute()