Public Access
feat: enhance setup process with SMTP configuration and token generation
fix: require authentication for certain routes and improve exam data handling chore: update .gitignore to include additional database files
This commit is contained in:
1 parent
ca9c646b65
commit
83bb412b35
8 files changed
+115
-28
No files matched your search
@@ -4,11 +4,19 @@ export const setupSchema = z.object({
|
||||
email: z.string().email().max(255),
|
||||
password: z.string().min(8, 'Password must be at least 8 characters'),
|
||||
displayName: z.string().min(1, 'Display name is required').max(100),
|
||||
siteTitle: z.string().min(1, 'Site title is required').max(255),
|
||||
language: z.enum(['en', 'nl']),
|
||||
siteTitle: z.string().min(1, 'Site title is required').max(255).optional(),
|
||||
language: z.enum(['en', 'nl']).optional(),
|
||||
smtpHost: z.string().max(255).optional(),
|
||||
smtpPort: z.string().max(10).optional(),
|
||||
smtpUser: z.string().max(255).optional(),
|
||||
smtpPass: z.string().max(255).optional(),
|
||||
smtpFrom: z.string().max(255).optional(),
|
||||
smtpSecure: z.enum(['auto', 'true', 'false']).optional(),
|
||||
appUrl: z.string().max(255).optional(),
|
||||
})
|
||||
|
||||
export const setupStatusSchema = z.object({
|
||||
email: z.string().email().max(255).optional(),
|
||||
|
||||
password: z.string().min(8).optional(),
|
||||
})
|
||||
Reference in new issue
Block a user