Commit c2c52d75 by aa.gusti

captcha

1 parent adfef56b
......@@ -13,6 +13,8 @@ def img_captcha(request, length=5, chars=string.ascii_uppercase + string.digits)
# font_path = os.path.abspath(os.path.join('/static/v3/fonts/arial.ttf'))
settings = get_settings()
captcha_files = settings['captcha_files']
if not os.path.exists(captcha_files):
os.makedirs(captcha_files)
from pyramid.path import AssetResolver
a = AssetResolver('opensipkd.base')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!