Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-customer
Model
Customer
CredentialsValidator.php
Go to the documentation of this file.
1
<?php
8
namespace
Magento\Customer\Model\Customer
;
9
10
use
Magento\Framework\Exception\InputException
;
11
15
class
CredentialsValidator
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
}
Magento\Customer\Model\Customer\CredentialsValidator\checkPasswordDifferentFromEmail
checkPasswordDifferentFromEmail($email, $password)
Definition:
CredentialsValidator.php:25
$email
$email
Definition:
details.phtml:13
__
__()
Definition:
__.php:13
Magento\Framework\Exception\InputException
Definition:
InputException.php:17
Magento\Customer\Model\Customer
Magento\Customer\Model\Customer\CredentialsValidator
Definition:
CredentialsValidator.php:15