Skip to content

Commit

Permalink
feat: Trim display name (#804)
Browse files Browse the repository at this point in the history
  • Loading branch information
x1m3 authored Oct 8, 2024
1 parent 994ed04 commit 290b08b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/api/identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ func (s *Server) CreateIdentity(ctx context.Context, request CreateIdentityReque
}, nil
}

if request.Body.DisplayName != nil {
request.Body.DisplayName = common.ToPointer(strings.TrimSpace(*request.Body.DisplayName))
}

var credentialStatusType verifiable.CredentialStatusType
if credentialStatusTypeRequest != nil && *credentialStatusTypeRequest != "" {
allowedCredentialStatuses := []string{string(verifiable.Iden3commRevocationStatusV1), string(verifiable.Iden3ReverseSparseMerkleTreeProof), string(verifiable.Iden3OnchainSparseMerkleTreeProof2023)}
Expand Down

0 comments on commit 290b08b

Please sign in to comment.