acoustic-zebra-63757
05/25/2023, 2:48 AMemail-recovery
trait. Is there a way to fix this beyond manually adding that trait to every single user? Any ideas on how their getting into this state?magnificent-energy-493
Is there a way to fix this beyond manually adding that trait to every single user?AFAIK no đ, you probably have to update all the affected users. As for how that happened, I am not sure, did you change the identity schema at some point?
acoustic-zebra-63757
05/25/2023, 2:35 PMacoustic-zebra-63757
05/25/2023, 2:35 PMacoustic-zebra-63757
05/25/2023, 4:57 PMemail
of the user account?magnificent-energy-493
if someone starts the recovery flow but doesnât complete it, would that get them into this state?I dont think so unless you have some custom logic for that.
To start account recovery, Ory Kratos must know which address to send the recovery message to. In most cases this is the email address the user provides when registering their account. Other fields inside theUsually you havesection are supported as well.traits
"recovery": {
"via": "email"
}
acoustic-zebra-63757
05/25/2023, 7:20 PM{
"$id": "<http://predibase.com/schemas/v3/user.schema.json>",
"$schema": "<http://json-schema.org/draft-07/schema#>",
"title": "User",
"type": "object",
"properties": {
"traits": {
"type": "object",
"properties": {
"username": {
"title": "Username",
"type": "string"
},
"email": {
"title": "E-Mail",
"type": "string",
"format": "email",
"minLength": 3,
"<http://ory.sh/kratos|ory.sh/kratos>": {
"credentials": {
"password": {
"identifier": true
}
},
"verification": {
"via": "email"
},
"recovery": {
"via": "email"
}
}
},
"email_recovery": {
"type": "string",
"format": "email",
"<http://ory.sh/kratos|ory.sh/kratos>": {
"recovery": {
"via": "email"
}
}
},
"name": {
"type": "object",
"properties": {
"first": {
"type": "string"
},
"last": {
"type": "string"
}
},
"required": [
"first"
]
},
"oidc": {
"type": "object",
"properties": {
"provider": {
"type": "string"
},
"domain": {
"type": "string"
}
}
},
"token": {
"title": "Registration Token",
"type": "string"
}
},
"required": [
"username",
"email",
"name",
"token"
],
"additionalProperties": false
}
}
}
acoustic-zebra-63757
05/30/2023, 2:51 PMemail_recovery
trait and use the email
as the recovery. Thanks again for helping us triage this!magnificent-energy-493