Skip to content

Commit

Permalink
fix(cli): 兼容旧版本自定义认证系统配置 (#1192)
Browse files Browse the repository at this point in the history
之前修改自定义认证系统时,未能兼容旧版本自定义认证系统配置,现去掉cli中InstallConfigSchema的auth.custom.type的默认值,使其可以兼容旧版本自定义认证系统配置
  • Loading branch information
tongchong authored Apr 3, 2024
1 parent 1e25062 commit 4a32bd7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/olive-rivers-camp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@scow/cli": patch
---

兼容旧版本自定义认证系统配置
2 changes: 1 addition & 1 deletion apps/cli/src/config/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export const InstallConfigSchema = Type.Object({
})),

custom: Type.Optional(Type.Object({
type: Type.Optional(Type.Enum(AuthCustomType, { description: "自定义认证系统类型", default: AuthCustomType.image })),
type: Type.Optional(Type.Enum(AuthCustomType, { description: "自定义认证系统类型" })),
external: Type.Optional(Type.Object({
url: Type.String({ description: "认证系统的 URL" }),
})),
Expand Down

0 comments on commit 4a32bd7

Please sign in to comment.