high-optician-2097
quiet-window-70232
06/01/2023, 2:37 PMquiet-window-70232
06/02/2023, 9:37 AMhigh-optician-2097
quiet-window-70232
06/02/2023, 9:43 AMemail on schema traits without special <http://ory.sh/kratos|ory.sh/kratos> just as metadata should not enable verification etc. we suppose?
So we will just fork the username + password schema to add the e-mail field as metadata and disabling registration / signup with password ๐high-optician-2097
Putting theyes, that is correcton schema traits without specialjust as metadata should not enable verification etc. we suppose?<http://ory.sh/kratos|ory.sh/kratos>
quiet-window-70232
06/02/2023, 9:45 AM{
"$id": "<https://schemas.ory.sh/presets/kratos/identity.username.schema.json>",
"title": "Person",
"type": "object",
"properties": {
"traits": {
"type": "object",
"properties": {
"username": {
"type": "string",
"title": "Username",
"maxLength": 100,
"<http://ory.sh/kratos|ory.sh/kratos>": {
"credentials": {
"password": {
"identifier": true
},
"webauthn": {
"identifier": true
},
"totp": {
"account_name": true
}
}
}
},
"email": {
"type": "string",
"title": "Email",
"maxLength": 200
}
},
"required": [
"username",
"email"
],
"additionalProperties": false
}
}
}