Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
aa.gusti
/
opensipkd-tools
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c2c52d75
authored
Sep 23, 2021
by
aa.gusti
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
captcha
1 parent
adfef56b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
opensipkd/tools/captcha.py
opensipkd/tools/captcha.py
View file @
c2c52d7
...
...
@@ -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'
)
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment