In function inputCheck(input,type)
put the following codes
Code: Select all
// Complex Password Modification
case 'password':
expression = /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[^a-zA-Z0-9])(?!.*\s).{8,100}$/;
break;
// End Complex Password Modification
Code: Select all
case '':
break;
2. Modify the file /hm_account.php
replace these codes
Code: Select all
<td><input type="password" name="accountpassword" value=""></td>
Code: Select all
<td>
<!-- Complex Password Modification -->
<input type="password" name="accountpassword" value="" checktype="password" checkmessage="<?php EchoTranslation("Password")?>"><br>
Password must between 8-100 characters, contain at least 1 lowercase letter, 1 uppercase letter, 1 numeric digit, and 1 special character.
<!-- End Complex Password Modification -->
</td>