Skip to content

Commit

Permalink
fix: add fallback to providerLabel
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedr0Rocha committed Jul 15, 2024
1 parent 630c487 commit 4eaa5f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions selfservice/strategy/oidc/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,9 @@ func (s *Strategy) handleError(w http.ResponseWriter, r *http.Request, f flow.Fl
provider, _ := s.provider(r.Context(), r, providerID)
if provider != nil && provider.Config() != nil {
providerLabel = provider.Config().Label
if providerLabel == "" {
providerLabel = provider.Config().Provider
}
}
lf.UI.Messages.Add(text.NewInfoLoginLinkMessage(dc.DuplicateIdentifier, providerLabel, newLoginURL))

Expand Down

0 comments on commit 4eaa5f5

Please sign in to comment.