1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-04 21:30:05 +00:00

fix(api): username should be lowercase

This commit is contained in:
Saad Jutt
2022-05-26 20:20:02 +05:00
parent 7d11cc7916
commit 5ad6ee5e0f
3 changed files with 20 additions and 6 deletions

View File

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