set resource password and remove resource password from dashboard

This commit is contained in:
Milo Schwartz 2024-11-19 00:05:04 -05:00
parent ab6d59c163
commit cfce3dabb3
No known key found for this signature in database
10 changed files with 457 additions and 164 deletions

View file

@ -44,7 +44,7 @@ export const resources = sqliteTable("resources", {
blockAccess: integer("blockAccess", { mode: "boolean" })
.notNull()
.default(false),
sso: integer("sso", { mode: "boolean" }).notNull().default(false),
sso: integer("sso", { mode: "boolean" }).notNull().default(true),
twoFactorEnabled: integer("twoFactorEnabled", { mode: "boolean" })
.notNull()
.default(false),

View file

@ -15,7 +15,7 @@ const setResourceAuthMethodsParamsSchema = z.object({
const setResourceAuthMethodsBodySchema = z
.object({
password: z.string().min(4).max(255).nullable(),
password: z.string().nullish(),
})
.strict();