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 759184a3
authored
Nov 25, 2025
by
aa.gustiana@gmail.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Enhance user authentication check to exclude XHR requests in ViewAuth
1 parent
94c4c3ba
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 @
759184a
...
@@ -196,7 +196,7 @@ class ViewAuth(BaseView):
...
@@ -196,7 +196,7 @@ class ViewAuth(BaseView):
if
not
next_url
:
if
not
next_url
:
next_url
=
request
.
home
next_url
=
request
.
home
if
request
.
authenticated_userid
:
# (request):
if
request
.
authenticated_userid
and
not
request
.
is_xhr
:
# (request):
message
=
'Anda sudah login'
message
=
'Anda sudah login'
if
request
.
is_xhr
:
if
request
.
is_xhr
:
user
=
request
.
user
user
=
request
.
user
...
...
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