Open Nikitas-io opened 4 years ago
same problem, have you find a solution?
After checking the source code, it's looking for validations under forms
object: getConfigValue('forms.validation.password.minLength')
Change your config to the below, it should work
forms: {
validation: {
password: {
required: true,
minLength: 6,
},
email: {
required: true
},
fullName: {
required: true,
minLength: 1,
maxLength: 30,
regexp: '/\w+/g',
}
}
}
Issue type
I'm submitting a ... (check one with "x")
Issue description
Current behavior:
Basically, the validation options seem to be usuless. I'm attempting to change the default validation option for the registration form but the default validation options are still there.
Expected behavior:
When chaning the validation options, the validation should actually change. Validation error messages and everything.
Steps to reproduce:
Simply change the validation options in your core.module.ts .
Related code:
My core.module.ts:
Other information:
npm, node, OS, Browser Node version: v12.18.0 Npm version: 6.14.5 Windows 10 Chrome
Angular, Nebular