-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid login and password #3758
Comments
key Different. look like : and find M2 key vi magento2/app/etc/env.php find key. look like : copy M1 key Value to M2. and login again. |
Thanks for your answer! |
PP is salt. |
https://github.com/ubertheme/module-ubdatamigration/blob/master/README.md
|
I run your command and I got this |
This issue belongs to migration tool, not magento 2 core. Please open issue with steps in according repo - https://github.com/magento/data-migration-tool |
After migration M1 to M2 UPDATE customer_entity_varchar,customer_entity SET customer_entity_varchar.value = customer_entity.password_hash WHERE customer_entity_varchar.entity_id = customer_entity.entity_id and customer_entity_varchar.attribute_id='12' attribute_id means password type values id in customer_entity_varchar table main problem old password value and new password values not match in magneto |
Hi likhamahudda, I have tried above solution but still I am facing same issue. I am unable to login with Magento1 customer account. I am using Magento 2.1.6 version. Please help me to resolve this issue soon. |
in magento 1.x the password is encrypted using md5, in magento 2 is not used md5, that is the reason you can’t log in after migration |
Hello,
I attached a text file with the code.
After you do the changes clean the cache and you can update your modules.
Let me know if it helped you.
Sorry for my english.
În Marţi, 3 Octombrie 2017 8:50:40, Krupal <notifications@github.com> a scris:
Hi Claudiumtreaa,Thanks for quick response. Please send me details on krupaly2k@gmail.com—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
\vendor\magento\framework\Encryption\Encryptor.php
line 186
public function isValidHash($password, $hash)
{
$this->explodePasswordHash($hash);
$passunhashed = $password;
foreach ($this->getPasswordVersion() as $hashVersion) {
$password = $this->hash($this->getPasswordSalt() . $password, $hashVersion);
}
$password = $password."+++".md5($passunhashed);
return Security::compareStrings(
$password,
$this->getPasswordHash()
);
}
\vendor\zendframework\zend-crypt\src\Utils.php
line 30
public static function compareStrings($expected, $actual)
{
$arr = explode("+++",$expected);
if($arr[0] === $actual){
$expected = $arr[0];
}else{
$expected = $arr[1];
}
$expected = (string) $expected;
$actual = (string) $actual;
if (function_exists('hash_equals')) {
return hash_equals($expected, $actual);
}
$lenExpected = strlen($expected);
$lenActual = strlen($actual);
$len = min($lenExpected, $lenActual);
$result = 0;
for ($i = 0; $i < $len; $i++) {
$result |= ord($expected[$i]) ^ ord($actual[$i]);
}
$result |= $lenExpected ^ $lenActual;
return ($result === 0);
}
|
Hello, I got another solution and very quick and easy Just Empty the table (TRUNCATE) " customer_entity_varchar " 100% sure login old customer in New magento 2 Thanks |
@likhamahudda how to empty that table ? whats the command please.. I imported users from magento 1.3 to a magento 2.2 through csv with their old password_hash that looks like this b67f0da6abeaa55560701296df7f05d7:3K would your solution convert the passwords? thanks! |
Steps to reproduce
Upgrade magento 1.7.x to 2.0.x with migration data tool from ubertheme.
Expected result
All is ok.
Actual result
When I try to login with any customer email and password I got "Invalid login and password.", but in the old store, the same customers working perfectly.
The text was updated successfully, but these errors were encountered: