Files
2026-10-12 14:25:22 +02:00

11 lines
232 B
TypeScript

import vine from '@vinejs/vine'
export const loginValidator = vine.create({
username: vine.string().trim().maxLength(64),
password: vine.string().maxLength(256),
code: vine
.string()
.trim()
.regex(/^\d{6}$/),
})