Page 1 of 1

How to increase password lenght

Posted: Fri Jan 20, 2006 9:26 am
by bergmannn
Hello everybody,

For the italian privacy law i have to increase the password lenght in the member area to minimum 8 digits.
In the latest version i see the warning that you need 6 digits.

How or where can i increase this option to 8 digits?

I think this topic is very important for all italian companies that uses joomla with registered users!

Regards

Martin Bergmann

Re: How to increase password lenght

Posted: Fri Jan 20, 2006 11:13 am
by davidrrm
I haven't tried this myself, but you'd want to change the following places in the code
in components/com_registration/registration.html.php. The line -

Code: Select all

} else if (form.password.value.length < 6) {
should have the 6 changed to an 8.

in the language file (using english.php as the sample here since that's what I have on my system)

Code: Select all

DEFINE('_REGWARN_PASS','Please enter a valid password.  No spaces, more than 6 characters and contain 0-9,a-z,A-Z');
You'll want to change the 6 to a 7 (I believe the text is wrong and "more" should read "at least").

That only works for registering. It appears that Joomla! doesn't make a similar check on length when users change their password.

For that you would want to add a check to the JavaScript code in the editUser function found in administrator/components/com_users/admin.users.html.php
and the userEdit function in components/com_user/user.html.php.

Re: How to increase password lenght

Posted: Fri Jan 20, 2006 1:38 pm
by bergmannn
Works Great ! 8)

Many Thanks

regards

Martin

Re: How to increase password lenght

Posted: Fri Apr 19, 2013 3:27 pm
by uzairasuknow
davidrrm wrote:I haven't tried this myself, but you'd want to change the following places in the code
in components/com_registration/registration.html.php. The line -

Code: Select all

} else if (form.password.value.length < 6) {
should have the 6 changed to an 8.

in the language file (using english.php as the sample here since that's what I have on my system)

Code: Select all

DEFINE('_REGWARN_PASS','Please enter a valid password.  No spaces, more than 6 characters and contain 0-9,a-z,A-Z');
You'll want to change the 6 to a 7 (I believe the text is wrong and "more" should read "at least").

That only works for registering. It appears that Joomla! doesn't make a similar check on length when users change their password.

For that you would want to add a check to the JavaScript code in the editUser function found in administrator/components/com_users/admin.users.html.php
and the userEdit function in components/com_user/user.html.php.
Thanks David, that really worked even after 7 years ago posted. However some Page links has been changed. Here anyone can find the updated answer http://stackoverflow.com/questions/1606 ... 3#16107903. Thanks again David!

Re: How to increase password lenght

Posted: Fri Apr 19, 2013 5:21 pm
by mandville
uzairasuknow wrote: Thanks David, that really worked even after 7 years ago posted. However some Page links has been changed.
you are posting in a joomla 1.0 forum and link to a j2.5 subject post.
totally irrelevant and off topic.
I will remove your link and lock this topic after giving a chance for you to respond