From d8e81529c2fcc00a2883456a2db2ad0be3a408d7 Mon Sep 17 00:00:00 2001 From: Kevin J Gao <32936811+gaokevin1@users.noreply.github.com> Date: Tue, 17 Dec 2024 12:54:41 -0800 Subject: [PATCH] make not-equal operator consistent --- internal/models/authentication/oauth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/models/authentication/oauth.go b/internal/models/authentication/oauth.go index d06d172..a71e8c8 100644 --- a/internal/models/authentication/oauth.go +++ b/internal/models/authentication/oauth.go @@ -138,7 +138,7 @@ func validateSystemProvider(h *helpers.Handler, m *OAuthProviderModel, name stri func ensureNoCustomProviderFields(h *helpers.Handler, field any, fieldKey, name string) { switch v := field.(type) { case types.String: - if !v.IsUnknown() && !v.IsNull() { + if v.ValueString() != "" { h.Error(fmt.Sprintf("The %s field is reserved for custom providers", fieldKey), "%s is a system provider and cannot specify %s reserved for custom provider", name, fieldKey) }