Skip to content
Snippets Groups Projects
Commit dc76833f authored by okarpenko's avatar okarpenko
Browse files

Merge commit 'refs/pull/1389/head' of https://github.com/magento/magento2 into MAGETWO-39123-new

Conflicts:
	app/code/Magento/Customer/Model/Customer/Attribute/Backend/Password.php
parents 140595df bc1b1e97
Branches
No related merge requests found
......@@ -53,17 +53,8 @@ class Password extends \Magento\Eav\Model\Entity\Attribute\Backend\AbstractBacke
);
}
if ($this->string->substr(
$password,
0,
1
) == ' ' || $this->string->substr(
$password,
$length - 1,
1
) == ' '
) {
throw new LocalizedException(__('The password can\'t begin or end with a space.'));
if (trim($password) != $password) {
throw new LocalizedException(__('The password can not begin or end with a space.'));
}
$object->setPasswordHash($object->hashPassword($password));
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment