Post by techiechic » Wed Oct 06, 2010 8:34 am

I know this is a really nit-picky request, but how would I go about changing the minimum length of users' passwords? I'm using version 1.4.9.1. I've tried searching through the code to find where this is being set, but so far I've had no luck.

User avatar
Newbie

Posts

Joined
Tue Sep 28, 2010 12:05 pm


Post by techiechic » Wed Oct 06, 2010 11:20 am

In case anyone has this question again here's how you can change the password limitations.

To change the minimum/maximum number of characters in a password you'll need to change line 366 in /catalog/controller/account/create.php as well as line 101 in /catalog/controller/account/password.php By default those lines look like this

Code: Select all

if ((strlen(utf8_decode($this->request->post['password'])) < 4) || (strlen(utf8_decode($this->request->post['password'])) > 20)) { 
I think it's pretty self-explanatory what to change once you're there.

The only other things you'll need to change are the error messages in the language files to reflect how you've changed the requirements. /catalog/language/english/account/create.php and /catalog/language/english/account/password.php By default those lines will look like this

Code: Select all

$_['error_password'] = 'Password must be between 3 and 20 characters!'; 
That's it! Hopefully someone else finds this helpful, it probably took me more hunting than it should have *hangs head*

User avatar
Newbie

Posts

Joined
Tue Sep 28, 2010 12:05 pm

Who is online

Users browsing this forum: No registered users and 34 guests