1
0
mirror of https://github.com/sasjs/server.git synced 2025-12-10 11:24:35 +00:00

Merge pull request #133 from sasjs/allanbowe/lengths-of-username-password-61

fix: shortening min length of username.  Closes #61
This commit is contained in:
Allan Bowe
2022-04-20 11:44:15 +03:00
committed by GitHub

View File

@@ -1,6 +1,6 @@
import Joi from 'joi'
const usernameSchema = Joi.string().alphanum().min(6).max(20)
const usernameSchema = Joi.string().alphanum().min(3).max(16)
const passwordSchema = Joi.string().min(6).max(1024)
export const blockFileRegex = /\.(exe|sh|htaccess)$/i