Add fullName to magic link form
Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
@@ -611,6 +611,7 @@ type DocumentAccess implements Node {
|
||||
}
|
||||
|
||||
input SendMagicLinkInput {
|
||||
fullName: String!
|
||||
email: EmailAddr!
|
||||
continue: String
|
||||
}
|
||||
|
||||
@@ -2033,6 +2033,7 @@ type DocumentAccess implements Node {
|
||||
}
|
||||
|
||||
input SendMagicLinkInput {
|
||||
fullName: String!
|
||||
email: EmailAddr!
|
||||
continue: String
|
||||
}
|
||||
@@ -9515,13 +9516,20 @@ func (ec *executionContext) unmarshalInputSendMagicLinkInput(ctx context.Context
|
||||
asMap[k] = v
|
||||
}
|
||||
|
||||
fieldsInOrder := [...]string{"email", "continue"}
|
||||
fieldsInOrder := [...]string{"fullName", "email", "continue"}
|
||||
for _, k := range fieldsInOrder {
|
||||
v, ok := asMap[k]
|
||||
if !ok {
|
||||
continue
|
||||
}
|
||||
switch k {
|
||||
case "fullName":
|
||||
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullName"))
|
||||
data, err := ec.unmarshalNString2string(ctx, v)
|
||||
if err != nil {
|
||||
return it, err
|
||||
}
|
||||
it.FullName = data
|
||||
case "email":
|
||||
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email"))
|
||||
data, err := ec.unmarshalNEmailAddr2goᚗproboᚗincᚋproboᚋpkgᚋmailᚐAddr(ctx, v)
|
||||
|
||||
@@ -214,6 +214,7 @@ type RequestTrustCenterFileAccessInput struct {
|
||||
}
|
||||
|
||||
type SendMagicLinkInput struct {
|
||||
FullName string `json:"fullName"`
|
||||
Email mail.Addr `json:"email"`
|
||||
Continue *string `json:"continue,omitempty"`
|
||||
}
|
||||
|
||||
@@ -193,6 +193,7 @@ func (r *mutationResolver) SendMagicLink(ctx context.Context, input types.SendMa
|
||||
}
|
||||
|
||||
req := &iam.SendMagicLinkRequest{
|
||||
FullName: input.FullName,
|
||||
Email: input.Email,
|
||||
CompliancePageID: &trustCenter.ID,
|
||||
OrganizationID: trustCenter.OrganizationID,
|
||||
|
||||
Reference in New Issue
Block a user