Log in
Model

CredentialsValidator

Magento\Customer\Model\Customer\CredentialsValidator

What it does

This class validates customer credentials to ensure password security requirements are met.

Developers use this class when creating or updating customer accounts to prevent users from setting their password to be the same as their email address.

It throws an InputException if the validation fails, which can be caught and handled appropriately in the application flow.

Public Methods

  • checkPasswordDifferentFromEmail()