Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: [Solved]: Default password character length  (Read 4512 times)

0 Members and 1 Guest are viewing this topic.

calvinite

  • Contributor
  • Coppermine novice
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 28
    • The Prichard Collection
[Solved]: Default password character length
« on: October 16, 2008, 08:05:19 pm »

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.
« Last Edit: October 16, 2008, 09:31:17 pm by Nibbler »
Logged
I started with nothing, and have most of it left.

Nibbler

  • Guest
Re: Default password character length
« Reply #1 on: October 16, 2008, 08:28:45 pm »

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

calvinite

  • Contributor
  • Coppermine novice
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 28
    • The Prichard Collection
Re: Default password character length
« Reply #2 on: October 16, 2008, 09:14:59 pm »

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.
Logged
I started with nothing, and have most of it left.

calvinite

  • Contributor
  • Coppermine novice
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 28
    • The Prichard Collection
Re: Default password character length
« Reply #3 on: October 16, 2008, 09:20:09 pm »

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

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

to change the default 2 to 8?

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Default password character length
« Reply #4 on: October 16, 2008, 09:21:26 pm »

Correct
Logged

calvinite

  • Contributor
  • Coppermine novice
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 28
    • The Prichard Collection
Re: Default password character length
« Reply #5 on: October 16, 2008, 09:27:34 pm »

Great. Thank you very much, I truly appreciate it.
Logged
I started with nothing, and have most of it left.
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.