refactor: remove redundant password requirement validation from database schemas, improving consistency across database configurations

This commit is contained in:
Mauricio Siu
2025-09-05 01:00:18 -06:00
parent a09cd06eea
commit e3f3426f1c
5 changed files with 0 additions and 9 deletions

View File

@@ -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",