-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Password length? #22
Comments
@bennothommo And what about the Account component? Does its validation check on the onRegister method not take settings from the config file? There validation rules are taken only from the property "rules", and the configuration from the config affects only the beforeValidate in the model? In the component, validation is separate. wn-user-plugin/components/Account.php Line 289 in de82b9a
minimum symbols not takes from config |
But need change Account component for validation. |
Hi. The documentation says:
Password length requirements
By default, the User plugin requires a minimum password length of 8 characters for all users when registering or changing their password. You can change this length requirement by going to backend and navigating to System > Users > User Settings. Inside the Registration tab, a Minimum password length field is provided, allowing you to increase or decrease this limit to your preferred length.
There are no fields on the registration tab that set the minimum number. But minimun length i find in config.php.
User model has rules. And validation has nothing to do with the config
fields.yaml in settings model:
User modal also has method :
use only on reset password and signin.
upd:
Sorry I didn't see beforeValidate method where change rules with minLength from config.
But its not work beacuse validation rules in onRegister method in Account component take rules from property, before beforeValidate.
If I'm wrong, I apologize
The text was updated successfully, but these errors were encountered: