I have an issue where I need to enable password re...
# talk-kratos
n
I have an issue where I need to enable password reset on an identity schema where the
identifier
is NOT an email address. Email address IS in the schema elsewhere but not used for login. What is the proper way to configure
kratos.yml
and the identity schema to assure that password reset and other functions that leverage email for notification will work?
p
Hi @numerous-energy-92403 I believe you can do this by specifying the "ory.sh/kratos" extension on the email field with the "recovery" property set. I don't think the credentials are required in this case. e.g.
Copy code
"email": {
  "type": "string",
  "format": "email",
  "<http://ory.sh/kratos|ory.sh/kratos>": {
    "recovery": {
     "via": "email"
    }
   }
}
and then on the other field that is the identifier you set the credentials field.
šŸ‘ 1
n
Thanks, @proud-plumber-24205! My second follow-up question is do you have an example of a
kratos.yml
configuration that uses MailGun SMTP?
p
@numerous-energy-92403 you can just specify the smtp connection string. I believe mailgun gives you an example of this. This is a generic smtp connection string
Copy code
courier:
  smtp:
    connection_uri: <smtps://username:password@smtp-server:1234/>
šŸ‘ 1