Skip to content

Commit

Permalink
feat: implement API flow for recovery link method
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Aug 28, 2020
1 parent df4d06d commit d65bf66
Show file tree
Hide file tree
Showing 5 changed files with 305 additions and 166 deletions.
18 changes: 18 additions & 0 deletions selfservice/strategy/link/.schema/email.schema.json
@@ -0,0 +1,18 @@
{
"$id": "https://schemas.ory.sh/kratos/selfservice/strategy/password/settings.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"required": [
"email"
],
"properties": {
"csrf_token": {
"type": "string"
},
"email": {
"type": "string",
"format": "email",
"minLength": 1
}
}
}
15 changes: 15 additions & 0 deletions selfservice/strategy/link/schema.go
@@ -0,0 +1,15 @@
package link

import (
"github.com/markbates/pkger"

"github.com/ory/kratos/x"
)

var _ = pkger.Dir("/selfservice/strategy/link/.schema")

var emailSchema []byte

func init() {
emailSchema = x.MustPkgerRead(pkger.Open("/selfservice/strategy/link/.schema/email.schema.json"))
}

0 comments on commit d65bf66

Please sign in to comment.