Password Text CharactersLast Update: 26th July, 2005
Article ID: 61



Introduction

Sometimes a customer will request a new password from a store and the password function will send them characters that they cannot type into their computer.

Solution

Altering the ASCII character to only include up to "z" in the alphabet is the solution. In catalog/includes/functions/general.php about line 1072 change this code:

$char = chr(tep_rand(0,255));


To this code:

$char = chr(tep_rand(0,122));



ASCII character 122 is 'z' so now it only searches up to that character in the ASCII table.

 

 

Trademark Policy | Copyright Policy | Sitemap

Copyright © 2000-2005 osCommerce. All rights reserved.