augustoramos Posted July 29, 2009 Report Share Posted July 29, 2009 It looks like if the password is less than 6 characters the system don't accept the registration, and shows up the form with the password field empty. if anyone want to verify this, ask me the link. Quote Link to comment Share on other sites More sharing options...
turtle6340 Posted July 29, 2009 Report Share Posted July 29, 2009 In core/modules/Registration .... // Check password length if(strlen($this->post->password1) <= 5) { $error = true; Template::Set('password_error', 'The password is too short!'); } else Template::Set('password_error', ''); I haven't had a chance to test changing the above number myself, but I think it's probably a good place to start Quote Link to comment Share on other sites More sharing options...
turtle6340 Posted July 29, 2009 Report Share Posted July 29, 2009 Sorry for got to add .... In lib/js/jquery.pstrength /** * $.fn.PStrength.defaults * These are the default values that can be overidden */ $.PStrength.defaults = { verdicts: ["Very Weak","Weak","Medium","Strong","Very Strong"], minCharMsg: "The minimum number of characters is", tooShortMsg: 'Too Short', unsafeMsg: 'Unsafe Password Word!', colors: ["#f00","#c06", "#f60","#3c0","#3f0"], scores: [10,15,30,40], powMax: 1.4, common: ["password","sex","god","123456","123","liverpool","letmein","qwerty","monkey"], minChar: 6, displayMin: true Set this min character to the same number you set in my earlier post .. Quote Link to comment Share on other sites More sharing options...
augustoramos Posted July 29, 2009 Author Report Share Posted July 29, 2009 Thanks turtle.... It worked, for registrations pages! In admin center, when I try to change someone's password trough pilot options and its less than the original value (in case, 5) it says "Password is less than 5 characters". Where else should I make changes? Quote Link to comment Share on other sites More sharing options...
turtle6340 Posted July 29, 2009 Report Share Posted July 29, 2009 sorry about that .. in admin/modules/PilotAdmin/PilotAdmin.tpl ... Util::SendEmail($pilot->email, $subject, $message); # Reject in the end, since it's delted PilotData::RejectPilot($this->post->id); } public function ChangePassword() { $password1 = $this->post->password1; $password2 = $this->post->password2; // Check password length if(strlen($password1) <= 5) { Template::Set('message', Lang::gs('password.wrong.length')); Template::Show('core_message.tpl'); return; } Change the above password length field to the number in the 2 other files.. Remember.. because these 3 files have been modified, they could get overridden in an update .. Quote Link to comment Share on other sites More sharing options...
augustoramos Posted July 30, 2009 Author Report Share Posted July 30, 2009 yeaaaaaaaahhhhhhh :D :D :D that worked ;D thanks a lot Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted July 30, 2009 Administrators Report Share Posted July 30, 2009 I'll make this a config option Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.