Hello all!
I'm new to OC, been fiddling with it for a week or so. Using 1.4.9.5.
My problem is that I feel that the requirement of 3 characters for a password is way too unsafe for customers so I was wondering where I could change this to say 6 or 8 and perhaps also requiring a mix of letters and numbers.
I'm sorry if I'm aksing int he wrong section, don't know where account creation belongs.
I'm new to OC, been fiddling with it for a week or so. Using 1.4.9.5.
My problem is that I feel that the requirement of 3 characters for a password is way too unsafe for customers so I was wondering where I could change this to say 6 or 8 and perhaps also requiring a mix of letters and numbers.
I'm sorry if I'm aksing int he wrong section, don't know where account creation belongs.
Last edited by Gefagahaga on Fri Dec 02, 2011 5:37 am, edited 1 time in total.
The validation on customer passwords checks that the password is not less than 4 characters (ie. sets a 4 character minimum) and not greater than 20. So, the password can be from 4 to 20 characters long.
There is nothing stopping you from using a mix of uppercase and lowercase letters and numbers. You can even use some symbols.
There is nothing stopping you from using a mix of uppercase and lowercase letters and numbers. You can even use some symbols.
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
fido-x wrote:The validation on customer passwords checks that the password is not less than 4 characters (ie. sets a 4 character minimum) and not greater than 20. So, the password can be from 4 to 20 characters long.
There is nothing stopping you from using a mix of uppercase and lowercase letters and numbers. You can even use some symbols.
Yes but I wanna force the customers to set a pass with a minimum of say 6 characters and I want it to say that the password is too short if they try setting less than that.
catalog/controller/account/register.php
find
change 4 to 6
i think thats all you need to change. let me know if it works.
find
Code: Select all
if ((strlen(utf8_decode($this->request->post['password'])) < 4) || (strlen(utf8_decode($this->request->post['password'])) > 20)) {
$this->error['password'] = $this->language->get('error_password');
}
i think thats all you need to change. let me know if it works.
SXGuy wrote:catalog/controller/account/register.php
find
change 4 to 6Code: Select all
if ((strlen(utf8_decode($this->request->post['password'])) < 4) || (strlen(utf8_decode($this->request->post['password'])) > 20)) { $this->error['password'] = $this->language->get('error_password'); }
i think thats all you need to change. let me know if it works.
Woo, it does. Thanks a lot!
And if anyone is looking for the same solution, don't forget to change the error text in:
/catalog/language/LANGUAGE/account/create.php
/catalog/language/LANGUAGE/account/password.php
So it says "must be longer than X...."
Who is online
Users browsing this forum: No registered users and 6 guests