diff --git a/frontend/src/components/icons/tailscale.tsx b/frontend/src/components/icons/tailscale.tsx index 3f7a15a..9381b5c 100644 --- a/frontend/src/components/icons/tailscale.tsx +++ b/frontend/src/components/icons/tailscale.tsx @@ -11,13 +11,15 @@ export function TailscaleIcon(props: SVGProps) { {...props} > ); diff --git a/internal/assets/migrations/000002_oauth_name.up.sql b/internal/assets/migrations/000002_oauth_name.up.sql index 91ff9dc..297ed2f 100644 --- a/internal/assets/migrations/000002_oauth_name.up.sql +++ b/internal/assets/migrations/000002_oauth_name.up.sql @@ -3,6 +3,6 @@ ALTER TABLE "sessions" ADD COLUMN "oauth_name" TEXT; UPDATE "sessions" SET - "oauth_name" = "Generic" + "oauth_name" = 'Generic' WHERE "oauth_name" IS NULL AND "provider" IS NOT NULL; diff --git a/internal/utils/app_utils.go b/internal/utils/app_utils.go index bf2a176..643c9cf 100644 --- a/internal/utils/app_utils.go +++ b/internal/utils/app_utils.go @@ -142,7 +142,9 @@ func GetOAuthProvidersConfig(env []string, args []string, appUrl string) (map[st for _, e := range env { pair := strings.SplitN(e, "=", 2) - envMap[pair[0]] = pair[1] + if len(pair) == 2 { + envMap[pair[0]] = pair[1] + } } envProviders, err := decoders.DecodeEnv(envMap)