Changeset 780

Show
Ignore:
Timestamp:
01/30/07 08:05:48
Author:
crchemist
Message:

Fix bug: Randomizer getCaptchaImage returns 0.jpg which is not existant.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • qPloneCaptchas/trunk/skins/plone_captchas/static/captcha_validator.vpy

    r779 r780  
    11from Products.qPloneCaptchas.utils import decrypt, parseKey, \ 
    2      encrypt1, getWord #, addExpiredKey 
     2     encrypt1, getWord 
    33from DateTime import DateTime 
    44from Products.CMFCore.utils import getToolByName 
  • qPloneCaptchas/trunk/utils.py

    r779 r780  
    133133def formKey(num): 
    134134    def normalize(s): 
    135         return (not len(s)%8 and s) or normalize(s+str(randint(0, 9))) 
     135        return (not len(s)%8 and s) or normalize(s+str(randint(1, 9))) 
    136136 
    137137    return normalize('%s_%i_'%(str(DateTime().timeTime()), num))