plain-lunch-50969
04/23/2024, 3:27 PMchilly-king-10285
04/23/2024, 3:27 PMchilly-king-10285
04/23/2024, 3:28 PMjson { "schema_id": "<preset://email>", "traits": { "email": "[[email protected]]" }, "credentials": { "password": { "config": { "password": "the-password" } } } }
In this example, the password the-password
will be hashed according to the configured password hashing algorithm and stored in the database. The identity will be able to sign in using [[email protected]]
and the-password
as credentials. Sources: - [Importing credentials](https://www.ory.sh/docs/kratos/manage-identities/import-user-accounts-identities#importing-credentials) - [Password policy](https://www.ory.sh/docs/concepts/password-policy) - [Leaked password check](https://www.ory.sh/docs/concepts/password-policy#leaked-password-check)plain-lunch-50969
04/23/2024, 3:29 PMchilly-king-10285
04/23/2024, 3:29 PMchilly-king-10285
04/23/2024, 3:29 PMplain-lunch-50969
04/23/2024, 3:30 PMchilly-king-10285
04/23/2024, 3:30 PMchilly-king-10285
04/23/2024, 3:30 PMjson { "schema_id": "default", "traits": { "email": "[[email protected]]" }, "credentials": { "password": { "config": { "password": "the-password" } } } }
In this example, the password the-password
will be hashed according to the configured password hashing algorithm and stored in the database. The identity will be able to sign in using [[email protected]]
and the-password
as credentials. Sources: - [Create Identity API](https://www.ory.sh/docs/kratos/reference/api#operation/createIdentity) - [Password Policy](https://www.ory.sh/docs/concepts/password-policy)