How to Validate Signup Form |
| |||
Hello, currently users on my site are able to sign in without even entering a password for themselves as well as other information that they can skip. I was wondering if anyone knew how to make it so that I will be able to validate and ensure they entered a password during sign up? Thanks
|
| |||
After looking around at the member.module.php file I figured it out.
|
| |||
how men? can u share??
|
| |||
sure. go to your 'includes' folder then 'libs' then locate a file named 'member.module.php' Then find the signup function located for me around line number 298 and enter the following code or you can edit this to fit what you would like. For me I wanted the user to enter a password that has to be at least 7 or more characters. if (strlen(!$_POST['password']) < 7){
|
| |||
Correction (! not needed) : [/code]
|
| |||
oh..thank you..
|