mirror of
https://github.com/randyjc/Rahoot.git
synced 2026-03-13 20:15:35 +01:00
Add concurrently
This commit is contained in:
12
socket/validator.js
Normal file
12
socket/validator.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import yup from "yup"
|
||||
|
||||
export const usernameValidator = yup
|
||||
.string()
|
||||
.required("Username is required")
|
||||
.min(4, "Username cannot be less than 4 characters")
|
||||
.max(20, "Username cannot exceed 20 characters")
|
||||
|
||||
export const inviteCodeValidator = yup
|
||||
.string()
|
||||
.required("Invite code is required")
|
||||
.length(6, "Invalid invite code")
|
||||
Reference in New Issue
Block a user