Create preg_match for password validation allowing (!@#$%)

后端 未结 9 966
耶瑟儿~
耶瑟儿~ 2020-12-04 23:14

I would like to create a preg_match function to validate my passowrds, but I\'m not sure how to write it to allow the following special characters to be used: <

9条回答
  •  感情败类
    2020-12-04 23:34

    I've done this with my drupal custom form in hook_form_validate here the password should be 6 characters of letters, numbers and at least one special character.

    
    

提交回复
热议问题