Hello Everyone, I have imported an user for testin...
# ory-network
n
Hello Everyone, I have imported an user for testing, but even though I think I have given the correct salt and hash values for password, I cannot log in with this password after import. It is imported successfully, after that I have tried a login but the login response message is "The provided credentials are invalid, check for spelling mistakes in your password or username, email address, or phone number." Can you help to find the problem? Clear Password:
Abcde123456
SALT:
4ebmRUs=
HASH:
fec82c61aa5a61864f1a63d20181cdd90e67461f
pf: {PASSWORD}{SALT}
Hashed Password Value With Encoding:
$sha1$pf=e1BBU1NXT1JEfXtTQUxUfQ==$NGVibVJVcz0=$ZmVjODJjNjFhYTVhNjE4NjRmMWE2M2QyMDE4MWNkZDkwZTY3NDYxZg==
Command:
Copy code
curl --location --request PATCH 'https://<project>.projects.oryapis.com/admin/identities' \
--header 'Authorization: Bearer <token_value>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "identities": [
        {
            "create": {
              "schema_id": "<preset://email>",
              "traits": {
                "email": "docs@example.org"
              },
              "verifiable_addresses": [{
                "value": "docs@example.org",
                "verified": true,
                "via": "email",
                "status": "completed"
              }],
              "state": "active",
              "credentials": {
                "password": {
                  "config": {
                    "hashed_password": "$sha1$pf=e1BBU1NXT1JEfXtTQUxUfQ==$NGVibVJVcz0=$ZmVjODJjNjFhYTVhNjE4NjRmMWE2M2QyMDE4MWNkZDkwZTY3NDYxZg=="
                  }
                }
              }
            }
        }
    ]
}'
Command Response:
Copy code
{
  "identities": [
    {
      "action": "create",
      "identity": "2656d8ab-f54d-445c-823c-8e8279760930"
    }
  ]
}