Skip to content

Commit

Permalink
fix: use schema URL directly
Browse files Browse the repository at this point in the history
  • Loading branch information
zepatrik committed Jan 25, 2024
1 parent 944eada commit b421df2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion selfservice/strategy/code/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,15 @@ func (s *Strategy) populateChooseMethodFlow(r *http.Request, f flow.Flow) error
return err
}

identifierLabel, err := login.GetIdentifierLabelFromSchemaWithField(ctx, sess.Identity.SchemaURL, via)
allSchemas, err := s.deps.IdentityTraitsSchemas(ctx)
if err != nil {
return err
}
iSchema, err := allSchemas.GetByID(sess.Identity.SchemaID)
if err != nil {
return err
}
identifierLabel, err := login.GetIdentifierLabelFromSchemaWithField(ctx, iSchema.RawURL, via)
if err != nil {
return err
}
Expand Down

0 comments on commit b421df2

Please sign in to comment.