Hello,
I succesfully set up the extended-users functionality according to the tutorial and tested its various functions and everything works. Except for one thing. I tried to add a validator for the password input while creating an account and seemingly the validator does nothing at all.
I tried adding it to the corresponding editable in extended-users.php as well, with the train of thought that the validator is maybe overwritten when the corresponding fields are pulled into the form, but that didn't work as well.
An account is created regardless of the conditions I set in the regex. The only condition which independently seems to be set is, that a password can't be less than 5 characters.
Any idea how I maybe could get the validator to work? Since without it passwords such as "111111" are possible.
Thanks in advance.
I succesfully set up the extended-users functionality according to the tutorial and tested its various functions and everything works. Except for one thing. I tried to add a validator for the password input while creating an account and seemingly the validator does nothing at all.
- Code: Select all
<cms:input name='extended_user_password' type='bound' required='1' validator='regex=/^(?=.+[A-Z])(?=.+[!@#$&*])(?=.+[0-9])(?=.+[a-z]).{16,}$/'/>
I tried adding it to the corresponding editable in extended-users.php as well, with the train of thought that the validator is maybe overwritten when the corresponding fields are pulled into the form, but that didn't work as well.
An account is created regardless of the conditions I set in the regex. The only condition which independently seems to be set is, that a password can't be less than 5 characters.
Any idea how I maybe could get the validator to work? Since without it passwords such as "111111" are possible.
Thanks in advance.