Log in
Model

GetCustomerByToken

Magento\Customer\Model\ForgotPasswordToken\GetCustomerByToken

What it does

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

Developers use it during the forgot password flow to validate the reset token and fetch the associated customer before allowing them to set a new password.

It's marked as deprecated because reset password tokens should not be directly looked up for security reasons.

Public Methods

  • execute()