Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 07 Aug 2012, 00:23
Mko's Avatar
Mko Mko is offline
 
Join Date: May 2009
Real name: Mark
Attempting to Limit User Password Length Through PHP Plugins

Hey all,
I'm trying to make it so user passwords need to be at least 6 to 20 characters long.
PHP Plugins:

register_addmember_process

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

profile_updatepassword_start

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Now for some reason, every time I execute a plugin, both of the echo statements echo out '0' because supposedly the field I'm calling has no length.

If anyone could help me out and explain what needs to be done to actually obtain the length of the password inputted in the textfield, I'd appreciate it!


Thanks,
Mark
Reply With Quote
  #2  
Old 07 Aug 2012, 00:33
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Real name: Simon
Wouldn't you check the register template and evaluate password1.value and password2.value?
Reply With Quote
  #3  
Old 07 Aug 2012, 00:35
Mko's Avatar
Mko Mko is offline
 
Join Date: May 2009
Real name: Mark
Originally Posted by Simon Lloyd View Post
Wouldn't you check the register template and evaluate password1.value and password2.value?
I want something that's not able to be changed by the user, meaning nothing in HTML/JS.
Reply With Quote
  #4  
Old 07 Aug 2012, 00:53
kh99's Avatar
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
I think your problem is that normally the user's browser hashes the password and clears the plain text password field. You can disable that by defining DISABLE_PASSWORD_CLEARING to 1, such as in your config.php or in a plugin:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


or if you wanted you might be able to define it only for the registration and profile pages so that you still have that security feature for normal logins.
__________________
Please don't PM me - post your questions in the appropriate forum.
Please don't PM me to ask me to read your thread.
Reply With Quote
  #5  
Old 07 Aug 2012, 10:54
Mko's Avatar
Mko Mko is offline
 
Join Date: May 2009
Real name: Mark
Originally Posted by kh99 View Post
I think your problem is that normally the user's browser hashes the password and clears the plain text password field. You can disable that by defining DISABLE_PASSWORD_CLEARING to 1, such as in your config.php or in a plugin:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

or if you wanted you might be able to define it only for the registration and profile pages so that you still have that security feature for normal logins.
Would that lead to potential vulnerabilities and security exploits?
Reply With Quote
  #6  
Old 07 Aug 2012, 12:47
kh99's Avatar
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
Originally Posted by Mko View Post
Would that lead to potential vulnerabilities and security exploits?
I don't think so. What it does is it keeps the password from being sent "in the clear". But it doesn't even really protect your forum because if someone were somehow monitoring communications between a users' browser and your forum they could just as easily intercept the hashed password and use it to log in. (but they wouldn't know what the original password was, which I think is the point).
__________________
Please don't PM me - post your questions in the appropriate forum.
Please don't PM me to ask me to read your thread.
Reply With Quote
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
Minimum Password Length Eric vBulletin 4.x Add-ons 44 Yesterday 15:08

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 22:51.

Layout Options | Width: Wide Color: