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.
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
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
That's it! Hopefully someone else finds this helpful, it probably took me more hunting than it should have *hangs head*
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)) {
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!';
Who is online
Users browsing this forum: No registered users and 34 guests