AccountManagement
Magento\Customer\Model\AccountManagement
What it does
The AccountManagement class is the central service for managing customer account operations in Magento 2.
Developers use it to handle customer registration, authentication, password resets, email confirmations, and account validation.
It provides methods for creating accounts, changing passwords, validating customer data, and managing the entire customer account lifecycle including confirmation workflows and email notifications.
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()