mirror of
https://github.com/LukeHagar/dokploy.git
synced 2025-12-10 20:37:45 +00:00
refactor: remove redundant password requirement validation from database schemas, improving consistency across database configurations
This commit is contained in:
@@ -6,7 +6,6 @@ import { z } from "zod";
|
||||
import { backups } from "./backups";
|
||||
import { environments } from "./environment";
|
||||
import { mounts } from "./mount";
|
||||
import { projects } from "./project";
|
||||
import { server } from "./server";
|
||||
import {
|
||||
applicationStatus,
|
||||
@@ -92,7 +91,6 @@ const createSchema = createInsertSchema(postgres, {
|
||||
name: z.string().min(1),
|
||||
databasePassword: z
|
||||
.string()
|
||||
.min(1, "Password is required")
|
||||
.regex(/^[a-zA-Z0-9@#%^&*()_+\-=[\]{}|;:,.<>?~`]*$/, {
|
||||
message:
|
||||
"Password contains invalid characters. Please avoid: $ ! ' \" \\ / and space characters for database compatibility",
|
||||
|
||||
Reference in New Issue
Block a user