Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
aa.gusti
/
tangsel-base
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1dc70c5b
authored
May 27, 2025
by
aa.gustiana@gmail.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
perubahan image captcha
1 parent
9e83e1b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
tangsel/tools/captcha.py
tangsel/tools/captcha.py
View file @
1dc70c5
...
@@ -17,7 +17,7 @@ def img_captcha(request, length=5, chars=string.ascii_uppercase + string.digits)
...
@@ -17,7 +17,7 @@ def img_captcha(request, length=5, chars=string.ascii_uppercase + string.digits)
static_path
=
a
.
resolve
(
'static'
)
.
abspath
()
static_path
=
a
.
resolve
(
'static'
)
.
abspath
()
captcha_path
=
os
.
path
.
abspath
(
os
.
path
.
join
(
captcha_files
,
file_name
))
captcha_path
=
os
.
path
.
abspath
(
os
.
path
.
join
(
captcha_files
,
file_name
))
font_path
=
os
.
path
.
abspath
(
os
.
path
.
join
(
font_path
=
os
.
path
.
abspath
(
os
.
path
.
join
(
static_path
,
'
v3/
fonts/arial.ttf'
))
static_path
,
'fonts/arial.ttf'
))
captcha_image
=
captcha
(
drawings
=
[
captcha_image
=
captcha
(
drawings
=
[
background
(
color
=
'#fff'
),
background
(
color
=
'#fff'
),
text
(
fonts
=
[
font_path
],
text
(
fonts
=
[
font_path
],
...
...
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