Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
aa.gusti
/
opensipkd-base
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 1b0c0e65
authored
Oct 21, 2025
by
aa.gustiana@gmail.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Update CaptchaWidget to log generated captcha code and session details
1 parent
d3981fcf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
opensipkd/base/widgets/widget_os.py
opensipkd/base/widgets/widget_os.py
View file @
1b0c0e6
...
...
@@ -380,7 +380,9 @@ class CaptchaWidget(Widget):
file_name
=
""
# if not cstruct:
kode_captcha
,
file_name
=
img_captcha
(
self
.
request
)
self
.
request
.
session
[
"captcha"
]
=
kode_captcha
self
.
request
.
session
[
"captcha_code"
]
=
kode_captcha
_logging
.
error
(
f
"Generated captcha code: {kode_captcha}"
)
_logging
.
error
(
self
.
request
.
session
.
items
())
# cstruct = cstruct or self.url+file_name
cstruct
=
self
.
url
+
file_name
...
...
@@ -398,7 +400,7 @@ class CaptchaWidget(Widget):
pstruct
=
pstruct
.
strip
()
if
not
pstruct
:
return
null
settings
=
get_settings
()
captcha_message
=
"Captcha tidak sesuai"
captcha_session
=
self
.
request
.
session
.
get
(
"captcha"
,
""
)
if
captcha_session
:
...
...
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