
Originally Posted by
dmagic
How change the Length of filling Password
There isn't a setting for this (that I'm aware of), which means you'll need to edit the login template file.
The default file for this is
/includes/templates/template_default/templates/tpl_login_default.php
Line#76 (or thereabouts) zencart v1.5.0 currently reads:
Code:
<?php echo zen_draw_password_field('password', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_password') . ' id="login-password"'); ?>
As you can (hopefully) see, the field length is currently being set to match the size of the customers password datafield. You'll need to change this code to use a smaller value (assuming that's what you want).
Something like the following *should* do it.
Code:
<?php echo zen_draw_password_field('password', '', 'size = "20" ' . ' id="login-password"'); ?>
The code above will/should set the size to 20 characters.
Cheers
Rod
ps. I suggest you use the override system rather than editing the default file.