AccountManagement
Magento\Customer\Model\AccountManagement
What it does
This class manages all customer account operations in Magento 2, including account creation, authentication, password management, and email confirmations.
Developers use this class when building features that require customer registration, login, password reset, or account validation.
It serves as the main entry point for customer account lifecycle management and integrates with email notifications, authentication, and validation systems.
Public Methods
- resendConfirmation()
- activate()
- activateById()
- authenticate()
- validateResetPasswordLinkToken()
- initiatePasswordReset()
- resetPassword()
- getConfirmationStatus()
- createAccount()
- createAccountWithPasswordHash()
- getDefaultBillingAddress()
- getDefaultShippingAddress()
- changePassword()
- changePasswordById()
- validate()
- isEmailAvailable()
- isCustomerInStore()
- validateCustomerStoreIdByWebsiteId()
- isReadonly()
- isResetPasswordLinkTokenExpired()
- changeResetPasswordLinkToken()
- sendPasswordReminderEmail()
- sendPasswordResetConfirmationEmail()
- getPasswordHash()