System Information
- Strapi Version: 4
- Operating System: macOS Monterey version 12.0.1
- Database: sqlite
- Node Version: 14.17.5
- NPM Version: 6.14.14
- Yarn Version:
Hi,
I’m trying to setup user registration in my NextJS app and when I do the mutation (I’m using GraphQL) the registration works fine (I get all the data I need) but the validation of the username and password doesn’t, in schema.json file in the user-permissions plugin folder the minLength property is set like this:
username": {
"type": "string",
"minLength": 3,
"unique": true,
"configurable": false,
"required": true
},
"email": {
"type": "email",
"minLength": 6,
"configurable": false,
"required": true
},
"provider": {
"type": "string",
"configurable": false
},
"password": {
"type": "password",
"minLength": 6,
"configurable": false,
"private": true
},
but in my frontend I’m able to register a user with a username and a password below of that minLength (which I don’t want), so I’m trying to figure out why those fields are not getting validated and where the validation happens and if it’s possible to add my own validation for those fields.