Initial commit: PC Builder AdonisJS project
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import vine from '@vinejs/vine'
|
||||
|
||||
const email = () => vine.string().email().maxLength(254)
|
||||
const password = () => vine.string().minLength(8).maxLength(32)
|
||||
|
||||
export const signupValidator = vine.create({
|
||||
fullName: vine.string().nullable(),
|
||||
email: email().unique({ table: 'users', column: 'email' }),
|
||||
password: password().confirmed({
|
||||
confirmationField: 'passwordConfirmation',
|
||||
}),
|
||||
})
|
||||
Reference in New Issue
Block a user