mirror of
https://github.com/ajnart/homarr.git
synced 2026-01-26 01:09:15 +01:00
✨ Add basic credentials authentication
This commit is contained in:
12
src/validations/user.ts
Normal file
12
src/validations/user.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
export const signInSchema = z.object({
|
||||
name: z.string(),
|
||||
password: z.string(),
|
||||
});
|
||||
|
||||
export const signUpFormSchema = z.object({
|
||||
username: z.string(),
|
||||
password: z.string().min(8),
|
||||
acceptTos: z.boolean(),
|
||||
});
|
||||
Reference in New Issue
Block a user