Changeset 783
- Timestamp:
- 01/30/07 11:46:53
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
qPloneCaptchas/trunk/skins/plone_captchas/static/getCaptcha.py
r782 r783 11 11 12 12 from random import randint 13 key = formKey(randint( 0, getCaptchasCount(False)))13 key = formKey(randint(1, getCaptchasCount(False))) 14 14 encrypted_key = encrypt(context.captcha_key, key) 15 15 qPloneCaptchas/trunk/skins/plone_captchas/static/getCaptchaImage.py
r782 r783 13 13 dk = decrypt(context.captcha_key, hk) 14 14 key = parseKey(dk)['key'] 15 16 15 img = getattr(context, '%s.jpg' % key) 17 16 return img.index_html(context.REQUEST, context.REQUEST.RESPONSE)
