Adorius Black
Advanced OT User
- Joined
- Mar 31, 2020
- Messages
- 311
- Solutions
- 3
- Reaction score
- 183
Hi. I am using gesior account and I am wonder if I can somehow allowed special characters for password on registration: I have whole form done with requiring one special character but when I click register i get this error:
Can i Somewhere change it to accept these characters !@#$%^&* ? I guess removing this line from code will not do good things because people will able to use also .'~ etc. Anybody know where is hidden this piece of code where I can allow exacly my special characters !@#$%^&* ?
Solved:
I hope it will not make any unexpectedly problems
PHP:
if(!check_password($reg_password))
$reg_form_errors[] = "Password contains illegal chars (a-z, A-Z and 0-9 only!) or lenght.";
}
Can i Somewhere change it to accept these characters !@#$%^&* ? I guess removing this line from code will not do good things because people will able to use also .'~ etc. Anybody know where is hidden this piece of code where I can allow exacly my special characters !@#$%^&* ?
Solved:
line: 174system/load.compat.php
PHP:
function check_password($pass)
{
$pass = (string) $pass;
$temp = strspn("$pass", "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890");
if($temp != strlen($pass))
return false;
if(strlen($pass) > 40)
return false;
return true;
}
I hope it will not make any unexpectedly problems
Last edited: