The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Set Minimum password length
Hopefully someone can help me figure this out..
basically just want to set a minimum password length on the register form. i added the following to register.php above the check for matching passwords (figured I'd move it to a plugin once I got it working in register.php) above this Code:
// check for matching passwords PHP Code:
but both $vbulletin->GPC['password'] and $_POST['password'] seems to always = 0 when I use strlen() another example I tried with no success: PHP Code:
PS for version 3.6.8 |
#2
|
||||
|
||||
The password field would be the cleartext password and afaik is not passed if the MD5 version is available (which is the case in 99.9% of cases) - so it will have a length of zero as it's empty.
|
#3
|
|||
|
|||
Thanks Paul, I guess I'll noodle around and see if I can make the md5 version unavailable.. though it really doesnt sound like a "good" way to do this.
anyone have any better ideas how I can add this simple functionality of minimum password length? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|