Is there a way to validate a phone number has already been used by customer programmatically?

1 Answer 1


You need to override the Magento\Customer\Model\AccountManagement.php class and then need to override createAccountWithPasswordHash method of the class.

also need to override below file

  • i just need to check if it already exists or not
    – simple guy
    Jan 29, 2018 at 9:36
  • For that you need to code in your custom module after override class and it's method. Jan 29, 2018 at 9:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.