PHP Classes

File: frontend/src/validators/contact.ts

Recommend this page to a friend!
  Classes of carlos carvalho   yrprey PHP application   frontend/src/validators/contact.ts   Download  
File: frontend/src/validators/contact.ts
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: yrprey PHP application
Web app to learn about OWASP API vulnerabilities
Author: By
Last change:
Date: 4 months ago
Size: 836 bytes
 

Contents

Class file image Download
import * as yup from "yup"; export const formSchema = yup.object().shape({ name: yup .string() .required("Required field") .min(3, "Password must be at least 3 characters long") .matches( /^[A-Za-záàâãéèêíïóôõöúçñÁÀÂÃÉÈÍÏÓÔÕÖÚÇÑ\s]+$/, "The name must contain only letters" ), phone: yup .string() .required("Required field") .max(15, "Maximum of 15 characterss"), mail: yup .string() .required("Required field") .email("Invalid email") .matches(/^[a-z0-9\\_.]+@[a-z]+\.([a-z]+)$/, "Check your email"), subject: yup.string().required("Required field"), textMessage: yup.string().required("Required field") .min(5, "Password must be at least 5 characters long") .max(413, "The password must have a maximum of 413 characters"), });