[Solved]: Default password character length [Solved]: Default password character length
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

[Solved]: Default password character length

Started by calvinite, October 16, 2008, 08:05:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

calvinite

Hello, I hope I'm in the correct place to post this. If not I apologize and request you move it to the appropriate board. I've read and searched the documentation and the forum, and though I might be overlooking it I can't find anything on changing the required character length for the login password. For extra security, I'd like to change it from the default length of two characters, of which I found a reference to listed in the $lang_register_php = array section of english.php, in the array element 'err_password_short' =>. I can't find it anywhere else and would appreciate help in this matter. And just so you know, I know just enough about php to get into trouble.

I'd also like to complement all you support and programmers on a fine job with CPG. This is my first use of it and I found the documentation to be fairly understandable, for someone completely in the dark and only resorted to posting when I ran out of steam. I've been looking, off and on, for several days. Thanks.
I started with nothing, and have most of it left.

Nibbler

Just search in register.php for 'err_password_short' and you'll find it.

calvinite

I found that but I need to know where to change the default length to 8 characters instead of 2, not just change the wording. I want to make it mandatory that passwords be 8 characters or more long. Thank you.
I started with nothing, and have most of it left.

calvinite

Doh! Sorry about that. I overlooked where you said, "register.php". I want to be sure I understand though. Are you saying to change:
Quoteif (utf_strlen($password) < 2) $error .= '<li>' . $lang_register_php['err_password_short'];

and change it to:
Quoteif (utf_strlen($password) < 8;) $error .= '<li>' . $lang_register_php['err_password_short'];

to change the default 2 to 8?

Thanks again.
I started with nothing, and have most of it left.

Joachim Müller


calvinite

Great. Thank you very much, I truly appreciate it.
I started with nothing, and have most of it left.