feat: Stronger password policy

This commit is contained in:
Maksim Eltyshev
2022-08-26 18:59:44 +02:00
parent fd8f40f1b0
commit 5c91bddfe7
7 changed files with 33 additions and 10 deletions

View File

@@ -16,6 +16,8 @@ module.exports = {
},
password: {
type: 'string',
minLength: 6,
regex: /^(?=.*[A-Za-z])(?=.*\d).+$/,
required: true,
},
name: {