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


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 '18 at 9:36
  • For that you need to code in your custom module after override class and it's method. – Nilesh Gosai Jan 29 '18 at 9:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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