Hello,
I am trying to import users using webtask - auth0-user-import-export/import which accepts json file.
below is json i am uploading:
[
{
"email":"ap53@test.com",
"password_hash":"$2y$10$sD5PHl4o5.UcTRT2X11kUuV3GIKrgdaY7nQ8n0uf3GgR8MdBe/PYa",
"email_verified":true,
"user_metadata":
{"first_name":"fname53","last_name":"lname53"},
"upsert":true
}
]
but it gives error like
Unable to import user "ap53@test.com":
Error in passwordHash property - String does not match pattern ^\$2[ab].........
when i generated hash using below script it says “Password is valid” using bcrypt algo.
$options = [
'cost' => 10,
];
$hash=password_hash("ABC123", PASSWORD_BCRYPT, $options);
echo $hash;
Without “password_hash” script works fine.
please guide in this how can i make it work.
Thank you in advance!