AccountManagementInterface
Magento\Customer\Api\AccountManagementInterface
What it does
This interface defines the contract for managing customer account operations in Magento 2.
Developers use this to perform operations like creating customer accounts, authentication, password management (reset, change), email confirmation, and retrieving default addresses.
It serves as the main service contract for all customer account-related business logic and is commonly used in custom modules, controllers, or observers that need to interact with customer accounts.
Public Methods
- createAccount()
- createAccountWithPasswordHash()
- validate()
- isReadonly()
- activate()
- activateById()
- authenticate()
- changePassword()
- changePasswordById()
- initiatePasswordReset()
- resetPassword()
- validateResetPasswordLinkToken()
- getConfirmationStatus()
- resendConfirmation()
- isEmailAvailable()
- isCustomerInStore()
- getDefaultBillingAddress()
- getDefaultShippingAddress()
- getPasswordHash()