Closed DzianisH closed 2 years ago
Assume I do have an identity schema like the one below. It contains username as an identifier and email as an additional property.
username
email
{ "$id": "https://schemas.ory.sh/presets/kratos/quickstart/email-password/identity.schema.json", "$schema": "http://json-schema.org/draft-07/schema#", "title": "Person", "type": "object", "properties": { "traits": { "type": "object", "properties": { "username": { "type": "string", "title": "Username", "minLength": 3, "ory.sh/kratos": { "credentials": { "password": { "identifier": true } } } }, "email": { "type": "string", "format": "email", "title": "Email", "minLength": 3, "ory.sh/kratos": { "verification": { "via": "email" }, "recovery": { "via": "email" } } } }, "required": [ "email", "username" ], "additionalProperties": false } } }
I want to add a similarity check for pair email-password to enhance the dummy password protection. Currently, I can do it only by making email an identifier.
You may have found the wrong place, hahaha!
We are the micro service framework of go language
Context
Assume I do have an identity schema like the one below. It contains
username
as an identifier andemail
as an additional property.What I want to do
I want to add a similarity check for pair email-password to enhance the dummy password protection. Currently, I can do it only by making email an identifier.