mirror of
https://github.com/fosrl/pangolin.git
synced 2025-07-16 00:45:03 +02:00
set resource password and remove resource password from dashboard
This commit is contained in:
parent
ab6d59c163
commit
cfce3dabb3
10 changed files with 457 additions and 164 deletions
|
@ -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),
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue