Magento 2: How to reset Customer Password from Database
It's hash for customer password in DB. So MD5 & Sha1 is not working.
UPDATE `customer_entity` SET `password` = MD5('test123') WHERE `email` = 'X@X.com';
So how to update password using database query. May be MD5(Sha1('test123'))
?
How Magento is doing via code. go to vendormagentomodule-customerConsoleCommandUpgradeHashAlgorithmCommand.php
protected function execute(InputInterface $input, OutputInterface $output)
{
$this->collection = $this->customerCollectionFactory->create();
$this->collection->addAttributeToSelect('*');
$customerCollection = $this->collection->getItems();
/** @var $customer Customer */
foreach ($customerCollection as $customer) {
$customer->load($customer->getId());
if (!$this->encryptor->validateHashVersion($customer->getPasswordHash())) {
list($hash, $salt, $version) = explode(Encryptor::DELIMITER, $customer->getPasswordHash(), 3);
$version .= Encryptor::DELIMITER . Encryptor::HASH_VERSION_LATEST;
$customer->setPasswordHash($this->encryptor->getHash($hash, $salt, $version));
$customer->save();
$output->write(".");
}
}
$output->writeln(".");
$output->writeln("<info>Finished</info>");
}
magento2 database password
add a comment |
It's hash for customer password in DB. So MD5 & Sha1 is not working.
UPDATE `customer_entity` SET `password` = MD5('test123') WHERE `email` = 'X@X.com';
So how to update password using database query. May be MD5(Sha1('test123'))
?
How Magento is doing via code. go to vendormagentomodule-customerConsoleCommandUpgradeHashAlgorithmCommand.php
protected function execute(InputInterface $input, OutputInterface $output)
{
$this->collection = $this->customerCollectionFactory->create();
$this->collection->addAttributeToSelect('*');
$customerCollection = $this->collection->getItems();
/** @var $customer Customer */
foreach ($customerCollection as $customer) {
$customer->load($customer->getId());
if (!$this->encryptor->validateHashVersion($customer->getPasswordHash())) {
list($hash, $salt, $version) = explode(Encryptor::DELIMITER, $customer->getPasswordHash(), 3);
$version .= Encryptor::DELIMITER . Encryptor::HASH_VERSION_LATEST;
$customer->setPasswordHash($this->encryptor->getHash($hash, $salt, $version));
$customer->save();
$output->write(".");
}
}
$output->writeln(".");
$output->writeln("<info>Finished</info>");
}
magento2 database password
add a comment |
It's hash for customer password in DB. So MD5 & Sha1 is not working.
UPDATE `customer_entity` SET `password` = MD5('test123') WHERE `email` = 'X@X.com';
So how to update password using database query. May be MD5(Sha1('test123'))
?
How Magento is doing via code. go to vendormagentomodule-customerConsoleCommandUpgradeHashAlgorithmCommand.php
protected function execute(InputInterface $input, OutputInterface $output)
{
$this->collection = $this->customerCollectionFactory->create();
$this->collection->addAttributeToSelect('*');
$customerCollection = $this->collection->getItems();
/** @var $customer Customer */
foreach ($customerCollection as $customer) {
$customer->load($customer->getId());
if (!$this->encryptor->validateHashVersion($customer->getPasswordHash())) {
list($hash, $salt, $version) = explode(Encryptor::DELIMITER, $customer->getPasswordHash(), 3);
$version .= Encryptor::DELIMITER . Encryptor::HASH_VERSION_LATEST;
$customer->setPasswordHash($this->encryptor->getHash($hash, $salt, $version));
$customer->save();
$output->write(".");
}
}
$output->writeln(".");
$output->writeln("<info>Finished</info>");
}
magento2 database password
It's hash for customer password in DB. So MD5 & Sha1 is not working.
UPDATE `customer_entity` SET `password` = MD5('test123') WHERE `email` = 'X@X.com';
So how to update password using database query. May be MD5(Sha1('test123'))
?
How Magento is doing via code. go to vendormagentomodule-customerConsoleCommandUpgradeHashAlgorithmCommand.php
protected function execute(InputInterface $input, OutputInterface $output)
{
$this->collection = $this->customerCollectionFactory->create();
$this->collection->addAttributeToSelect('*');
$customerCollection = $this->collection->getItems();
/** @var $customer Customer */
foreach ($customerCollection as $customer) {
$customer->load($customer->getId());
if (!$this->encryptor->validateHashVersion($customer->getPasswordHash())) {
list($hash, $salt, $version) = explode(Encryptor::DELIMITER, $customer->getPasswordHash(), 3);
$version .= Encryptor::DELIMITER . Encryptor::HASH_VERSION_LATEST;
$customer->setPasswordHash($this->encryptor->getHash($hash, $salt, $version));
$customer->save();
$output->write(".");
}
}
$output->writeln(".");
$output->writeln("<info>Finished</info>");
}
magento2 database password
magento2 database password
edited Oct 5 '16 at 10:52
Ankit Shah
asked Sep 22 '16 at 7:22
Ankit ShahAnkit Shah
4,773964141
4,773964141
add a comment |
add a comment |
5 Answers
5
active
oldest
votes
This SQL works just fine to update the customer password. Tested with Magento 2.1.5.
Just change "YOURPASSWORD" below (keep the xxx:es) and voila!
UPDATE `customer_entity`
SET `password_hash` = CONCAT(SHA2('xxxxxxxxYOURPASSWORD', 256), ':xxxxxxxx:1')
WHERE `entity_id` = 1;
3
Note that this will essentially create an unsalted password. It's fine as a testing procedure, but shouldn't be used as a regular method in production or it will significantly weaken security. See @7ochem's answer for a more secure approach that generates unique salts.
– Scott Buchanan
Sep 11 '17 at 19:52
Any way! This solution is working.. Thanks @Robban
– Irfan Momin
Oct 3 '17 at 6:08
add a comment |
Never thought of using SHA hashing in SQL directly until I saw Robban's answer. I'd like to add that you could generate the hash in SQL too, leaving only the password that should be added. You can use variables (set-statement) to set all the necessary values upfront:
SET @email='emailaddress@example.com', @passwd='test@123', @salt=MD5(RAND());
UPDATE customer_entity
SET password_hash = CONCAT(SHA2(CONCAT(@salt, @passwd), 256), ':', @salt, ':1')
WHERE email = @email;
I need to update all the customers of one db with generated password, is there a way to do this for all the table ?
– Christophe Ferreboeuf
Jun 20 '17 at 8:42
This is a slightly different question, maybe worth of answering it separately. Can you Ask this as a new question? I'm happy to answer that. Please do not forget to add your Magento version in the question
– 7ochem
Jun 20 '17 at 12:23
add a comment |
I don't think it's possible to set the password from inside the DB. You need SHA256
hashing for customer passwords. Here's how Magento generates it:
example password in DB:
7fe8104daf9ebd5c2ac427ec7312cd9456195b1a8ade188fa8bfd35e43bc0614:7ilBNt4q5xYUSMyv8UX2a7gkmwv051Pm:1
this is the format:
A:B:C
Where
B = $salt
= random string of 32 characters
A = hash('sha256', $salt . $password);
C = Hashing algorithm version (default = 1)
Can u give with example @Aaron. Suppose password istest
. PHP/Magento Example
– Ankit Shah
Oct 18 '16 at 7:59
add a comment |
You can generate a Magento 2 style password hash quite easily via PHP on command line (CLI).
Use this command to generate a hash, as example for password test123
(change that into your own password):
php -r '$salt=md5(time());
echo hash("sha256", $salt.$argv[1]).":$salt:1n";' test123
It is using MD5 of current Epoch time (time()
) as a salt, but you can also use anything else.
Copy this generated hash and paste it into your query or database management tool on a customer record's password_hash
column.
add a comment |
Just try the below mysql query
update customer_entity set password_hash = CONCAT(md5('test123'),"::0") where entity_id = 233;
Where entity_id is your user id
There are 3 values separated by : sign
In our case
- First is the md5 of password
- Second is empty or null as we are not using any salt
- Third is 0 to indicate use md5
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f137555%2fmagento-2-how-to-reset-customer-password-from-database%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
5 Answers
5
active
oldest
votes
5 Answers
5
active
oldest
votes
active
oldest
votes
active
oldest
votes
This SQL works just fine to update the customer password. Tested with Magento 2.1.5.
Just change "YOURPASSWORD" below (keep the xxx:es) and voila!
UPDATE `customer_entity`
SET `password_hash` = CONCAT(SHA2('xxxxxxxxYOURPASSWORD', 256), ':xxxxxxxx:1')
WHERE `entity_id` = 1;
3
Note that this will essentially create an unsalted password. It's fine as a testing procedure, but shouldn't be used as a regular method in production or it will significantly weaken security. See @7ochem's answer for a more secure approach that generates unique salts.
– Scott Buchanan
Sep 11 '17 at 19:52
Any way! This solution is working.. Thanks @Robban
– Irfan Momin
Oct 3 '17 at 6:08
add a comment |
This SQL works just fine to update the customer password. Tested with Magento 2.1.5.
Just change "YOURPASSWORD" below (keep the xxx:es) and voila!
UPDATE `customer_entity`
SET `password_hash` = CONCAT(SHA2('xxxxxxxxYOURPASSWORD', 256), ':xxxxxxxx:1')
WHERE `entity_id` = 1;
3
Note that this will essentially create an unsalted password. It's fine as a testing procedure, but shouldn't be used as a regular method in production or it will significantly weaken security. See @7ochem's answer for a more secure approach that generates unique salts.
– Scott Buchanan
Sep 11 '17 at 19:52
Any way! This solution is working.. Thanks @Robban
– Irfan Momin
Oct 3 '17 at 6:08
add a comment |
This SQL works just fine to update the customer password. Tested with Magento 2.1.5.
Just change "YOURPASSWORD" below (keep the xxx:es) and voila!
UPDATE `customer_entity`
SET `password_hash` = CONCAT(SHA2('xxxxxxxxYOURPASSWORD', 256), ':xxxxxxxx:1')
WHERE `entity_id` = 1;
This SQL works just fine to update the customer password. Tested with Magento 2.1.5.
Just change "YOURPASSWORD" below (keep the xxx:es) and voila!
UPDATE `customer_entity`
SET `password_hash` = CONCAT(SHA2('xxxxxxxxYOURPASSWORD', 256), ':xxxxxxxx:1')
WHERE `entity_id` = 1;
answered Apr 5 '17 at 15:40
RobbanRobban
45659
45659
3
Note that this will essentially create an unsalted password. It's fine as a testing procedure, but shouldn't be used as a regular method in production or it will significantly weaken security. See @7ochem's answer for a more secure approach that generates unique salts.
– Scott Buchanan
Sep 11 '17 at 19:52
Any way! This solution is working.. Thanks @Robban
– Irfan Momin
Oct 3 '17 at 6:08
add a comment |
3
Note that this will essentially create an unsalted password. It's fine as a testing procedure, but shouldn't be used as a regular method in production or it will significantly weaken security. See @7ochem's answer for a more secure approach that generates unique salts.
– Scott Buchanan
Sep 11 '17 at 19:52
Any way! This solution is working.. Thanks @Robban
– Irfan Momin
Oct 3 '17 at 6:08
3
3
Note that this will essentially create an unsalted password. It's fine as a testing procedure, but shouldn't be used as a regular method in production or it will significantly weaken security. See @7ochem's answer for a more secure approach that generates unique salts.
– Scott Buchanan
Sep 11 '17 at 19:52
Note that this will essentially create an unsalted password. It's fine as a testing procedure, but shouldn't be used as a regular method in production or it will significantly weaken security. See @7ochem's answer for a more secure approach that generates unique salts.
– Scott Buchanan
Sep 11 '17 at 19:52
Any way! This solution is working.. Thanks @Robban
– Irfan Momin
Oct 3 '17 at 6:08
Any way! This solution is working.. Thanks @Robban
– Irfan Momin
Oct 3 '17 at 6:08
add a comment |
Never thought of using SHA hashing in SQL directly until I saw Robban's answer. I'd like to add that you could generate the hash in SQL too, leaving only the password that should be added. You can use variables (set-statement) to set all the necessary values upfront:
SET @email='emailaddress@example.com', @passwd='test@123', @salt=MD5(RAND());
UPDATE customer_entity
SET password_hash = CONCAT(SHA2(CONCAT(@salt, @passwd), 256), ':', @salt, ':1')
WHERE email = @email;
I need to update all the customers of one db with generated password, is there a way to do this for all the table ?
– Christophe Ferreboeuf
Jun 20 '17 at 8:42
This is a slightly different question, maybe worth of answering it separately. Can you Ask this as a new question? I'm happy to answer that. Please do not forget to add your Magento version in the question
– 7ochem
Jun 20 '17 at 12:23
add a comment |
Never thought of using SHA hashing in SQL directly until I saw Robban's answer. I'd like to add that you could generate the hash in SQL too, leaving only the password that should be added. You can use variables (set-statement) to set all the necessary values upfront:
SET @email='emailaddress@example.com', @passwd='test@123', @salt=MD5(RAND());
UPDATE customer_entity
SET password_hash = CONCAT(SHA2(CONCAT(@salt, @passwd), 256), ':', @salt, ':1')
WHERE email = @email;
I need to update all the customers of one db with generated password, is there a way to do this for all the table ?
– Christophe Ferreboeuf
Jun 20 '17 at 8:42
This is a slightly different question, maybe worth of answering it separately. Can you Ask this as a new question? I'm happy to answer that. Please do not forget to add your Magento version in the question
– 7ochem
Jun 20 '17 at 12:23
add a comment |
Never thought of using SHA hashing in SQL directly until I saw Robban's answer. I'd like to add that you could generate the hash in SQL too, leaving only the password that should be added. You can use variables (set-statement) to set all the necessary values upfront:
SET @email='emailaddress@example.com', @passwd='test@123', @salt=MD5(RAND());
UPDATE customer_entity
SET password_hash = CONCAT(SHA2(CONCAT(@salt, @passwd), 256), ':', @salt, ':1')
WHERE email = @email;
Never thought of using SHA hashing in SQL directly until I saw Robban's answer. I'd like to add that you could generate the hash in SQL too, leaving only the password that should be added. You can use variables (set-statement) to set all the necessary values upfront:
SET @email='emailaddress@example.com', @passwd='test@123', @salt=MD5(RAND());
UPDATE customer_entity
SET password_hash = CONCAT(SHA2(CONCAT(@salt, @passwd), 256), ':', @salt, ':1')
WHERE email = @email;
edited Apr 25 '17 at 12:08
answered Apr 25 '17 at 12:03
7ochem7ochem
5,75293768
5,75293768
I need to update all the customers of one db with generated password, is there a way to do this for all the table ?
– Christophe Ferreboeuf
Jun 20 '17 at 8:42
This is a slightly different question, maybe worth of answering it separately. Can you Ask this as a new question? I'm happy to answer that. Please do not forget to add your Magento version in the question
– 7ochem
Jun 20 '17 at 12:23
add a comment |
I need to update all the customers of one db with generated password, is there a way to do this for all the table ?
– Christophe Ferreboeuf
Jun 20 '17 at 8:42
This is a slightly different question, maybe worth of answering it separately. Can you Ask this as a new question? I'm happy to answer that. Please do not forget to add your Magento version in the question
– 7ochem
Jun 20 '17 at 12:23
I need to update all the customers of one db with generated password, is there a way to do this for all the table ?
– Christophe Ferreboeuf
Jun 20 '17 at 8:42
I need to update all the customers of one db with generated password, is there a way to do this for all the table ?
– Christophe Ferreboeuf
Jun 20 '17 at 8:42
This is a slightly different question, maybe worth of answering it separately. Can you Ask this as a new question? I'm happy to answer that. Please do not forget to add your Magento version in the question
– 7ochem
Jun 20 '17 at 12:23
This is a slightly different question, maybe worth of answering it separately. Can you Ask this as a new question? I'm happy to answer that. Please do not forget to add your Magento version in the question
– 7ochem
Jun 20 '17 at 12:23
add a comment |
I don't think it's possible to set the password from inside the DB. You need SHA256
hashing for customer passwords. Here's how Magento generates it:
example password in DB:
7fe8104daf9ebd5c2ac427ec7312cd9456195b1a8ade188fa8bfd35e43bc0614:7ilBNt4q5xYUSMyv8UX2a7gkmwv051Pm:1
this is the format:
A:B:C
Where
B = $salt
= random string of 32 characters
A = hash('sha256', $salt . $password);
C = Hashing algorithm version (default = 1)
Can u give with example @Aaron. Suppose password istest
. PHP/Magento Example
– Ankit Shah
Oct 18 '16 at 7:59
add a comment |
I don't think it's possible to set the password from inside the DB. You need SHA256
hashing for customer passwords. Here's how Magento generates it:
example password in DB:
7fe8104daf9ebd5c2ac427ec7312cd9456195b1a8ade188fa8bfd35e43bc0614:7ilBNt4q5xYUSMyv8UX2a7gkmwv051Pm:1
this is the format:
A:B:C
Where
B = $salt
= random string of 32 characters
A = hash('sha256', $salt . $password);
C = Hashing algorithm version (default = 1)
Can u give with example @Aaron. Suppose password istest
. PHP/Magento Example
– Ankit Shah
Oct 18 '16 at 7:59
add a comment |
I don't think it's possible to set the password from inside the DB. You need SHA256
hashing for customer passwords. Here's how Magento generates it:
example password in DB:
7fe8104daf9ebd5c2ac427ec7312cd9456195b1a8ade188fa8bfd35e43bc0614:7ilBNt4q5xYUSMyv8UX2a7gkmwv051Pm:1
this is the format:
A:B:C
Where
B = $salt
= random string of 32 characters
A = hash('sha256', $salt . $password);
C = Hashing algorithm version (default = 1)
I don't think it's possible to set the password from inside the DB. You need SHA256
hashing for customer passwords. Here's how Magento generates it:
example password in DB:
7fe8104daf9ebd5c2ac427ec7312cd9456195b1a8ade188fa8bfd35e43bc0614:7ilBNt4q5xYUSMyv8UX2a7gkmwv051Pm:1
this is the format:
A:B:C
Where
B = $salt
= random string of 32 characters
A = hash('sha256', $salt . $password);
C = Hashing algorithm version (default = 1)
edited Sep 22 '16 at 8:16
Ankit Shah
4,773964141
4,773964141
answered Sep 22 '16 at 7:45
Aaron AllenAaron Allen
6,61421028
6,61421028
Can u give with example @Aaron. Suppose password istest
. PHP/Magento Example
– Ankit Shah
Oct 18 '16 at 7:59
add a comment |
Can u give with example @Aaron. Suppose password istest
. PHP/Magento Example
– Ankit Shah
Oct 18 '16 at 7:59
Can u give with example @Aaron. Suppose password is
test
. PHP/Magento Example– Ankit Shah
Oct 18 '16 at 7:59
Can u give with example @Aaron. Suppose password is
test
. PHP/Magento Example– Ankit Shah
Oct 18 '16 at 7:59
add a comment |
You can generate a Magento 2 style password hash quite easily via PHP on command line (CLI).
Use this command to generate a hash, as example for password test123
(change that into your own password):
php -r '$salt=md5(time());
echo hash("sha256", $salt.$argv[1]).":$salt:1n";' test123
It is using MD5 of current Epoch time (time()
) as a salt, but you can also use anything else.
Copy this generated hash and paste it into your query or database management tool on a customer record's password_hash
column.
add a comment |
You can generate a Magento 2 style password hash quite easily via PHP on command line (CLI).
Use this command to generate a hash, as example for password test123
(change that into your own password):
php -r '$salt=md5(time());
echo hash("sha256", $salt.$argv[1]).":$salt:1n";' test123
It is using MD5 of current Epoch time (time()
) as a salt, but you can also use anything else.
Copy this generated hash and paste it into your query or database management tool on a customer record's password_hash
column.
add a comment |
You can generate a Magento 2 style password hash quite easily via PHP on command line (CLI).
Use this command to generate a hash, as example for password test123
(change that into your own password):
php -r '$salt=md5(time());
echo hash("sha256", $salt.$argv[1]).":$salt:1n";' test123
It is using MD5 of current Epoch time (time()
) as a salt, but you can also use anything else.
Copy this generated hash and paste it into your query or database management tool on a customer record's password_hash
column.
You can generate a Magento 2 style password hash quite easily via PHP on command line (CLI).
Use this command to generate a hash, as example for password test123
(change that into your own password):
php -r '$salt=md5(time());
echo hash("sha256", $salt.$argv[1]).":$salt:1n";' test123
It is using MD5 of current Epoch time (time()
) as a salt, but you can also use anything else.
Copy this generated hash and paste it into your query or database management tool on a customer record's password_hash
column.
edited Feb 17 '17 at 8:41
answered Jan 31 '17 at 16:47
7ochem7ochem
5,75293768
5,75293768
add a comment |
add a comment |
Just try the below mysql query
update customer_entity set password_hash = CONCAT(md5('test123'),"::0") where entity_id = 233;
Where entity_id is your user id
There are 3 values separated by : sign
In our case
- First is the md5 of password
- Second is empty or null as we are not using any salt
- Third is 0 to indicate use md5
add a comment |
Just try the below mysql query
update customer_entity set password_hash = CONCAT(md5('test123'),"::0") where entity_id = 233;
Where entity_id is your user id
There are 3 values separated by : sign
In our case
- First is the md5 of password
- Second is empty or null as we are not using any salt
- Third is 0 to indicate use md5
add a comment |
Just try the below mysql query
update customer_entity set password_hash = CONCAT(md5('test123'),"::0") where entity_id = 233;
Where entity_id is your user id
There are 3 values separated by : sign
In our case
- First is the md5 of password
- Second is empty or null as we are not using any salt
- Third is 0 to indicate use md5
Just try the below mysql query
update customer_entity set password_hash = CONCAT(md5('test123'),"::0") where entity_id = 233;
Where entity_id is your user id
There are 3 values separated by : sign
In our case
- First is the md5 of password
- Second is empty or null as we are not using any salt
- Third is 0 to indicate use md5
answered 4 mins ago
AbdulBasitAbdulBasit
1799
1799
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f137555%2fmagento-2-how-to-reset-customer-password-from-database%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown