Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CredentialsValidator.php
Go to the documentation of this file.
1 <?php
9 
11 
16 {
25  public function checkPasswordDifferentFromEmail($email, $password)
26  {
27  if (strcasecmp($password, $email) == 0) {
28  throw new InputException(
29  __("The password can't be the same as the email address. Create a new password and try again.")
30  );
31  }
32  }
33 }
$email
Definition: details.phtml:13
__()
Definition: __.php:13