https://www.ory.sh/ logo
#talk-kratos
Title
# talk-kratos
n

numerous-energy-92403

10/01/2021, 1:57 PM
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

proud-plumber-24205

10/01/2021, 2:27 PM
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

numerous-energy-92403

10/01/2021, 2:53 PM
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

proud-plumber-24205

10/01/2021, 7:00 PM
@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
4 Views