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 febbaac4
authored
Mar 17, 2026
by
aa.gustiana@gmail.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
perbaikan pengecekan captcha untuk permintaan non-XHR pada fungsi login
1 parent
6cf50b81
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
opensipkd/base/views/user_login.py
opensipkd/base/views/user_login.py
View file @
febbaac
...
...
@@ -66,7 +66,7 @@ class Login(CSRFSchema):
def
after_bind
(
self
,
schema
,
kwargs
):
# super().after_bind(schema, kwargs)
request
=
kwargs
[
"request"
]
if
BASE_CLASS
.
login_captcha
:
if
BASE_CLASS
.
login_captcha
and
not
request
.
is_xhr
:
self
[
"captcha"
]
=
colander
.
SchemaNode
(
colander
.
String
(),
widget
=
widget_os
.
CaptchaWidget
(
...
...
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