Log in
Model

Customer

Magento\Customer\Model\ResourceModel\Customer

What it does

This is the resource model for the Customer entity in Magento 2, handling all database operations for customer data.

Developers use this class to load customers by email, manage passwords and reset tokens, check for duplicate emails, and handle customer-specific database operations like session cutoffs and website scope validations.

It also manages customer confirmation requirements and encrypts sensitive data like password reset tokens.

Public Methods

  • loadByEmail()
  • changePassword()
  • findEmailDuplicates()
  • checkCustomerId()
  • getWebsiteId()
  • setNewIncrementId()
  • changeResetPasswordLinkToken()
  • findSessionCutOff()
  • updateSessionCutOff()