1 (edited by hankwang 2008-02-16 18:43)

Topic: password confusion

I'm not sure whether this subject has popped up before, but I suspect that new users sometimes have a problem with their assigned password because of similar letters, especially O/0 and l/I/1, depending on the font of the email reader. I recently got an email from a user who couldn't log in after registering.

Quick fix in imports/functions.php, function random_pass($len) :

$chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';

// replace this by:

$chars = 'ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz23456789';