opensource-socialnetwork / PasswordValidation

PasswordValidation
1 stars 0 forks source link

PasswordValidationOnSignUp component conflict with backend->Add User #1

Open githubertus opened 4 years ago

githubertus commented 4 years ago

PasswordValidationOnSignUp component needs password lenght of 8 mininum But the length check isn't only used on signup, but also

  1. on change of Account Settings
  2. on Add User from admin backend

Problem: running either of both parts currently displays the old DEFAULT error message: "Password must be more than 5 characters" which of course is irritating. So the component has to overwrite the default message like

    // overwrite Ossn default length of 6 with component defined length -1
    'password:error' => 'Password must be more than 7 characters.',
lianglee commented 4 years ago

Agree, i guess we need to modify the password validation component with new string.

lianglee commented 4 years ago

https://github.com/opensource-socialnetwork/PasswordValidation