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 df875ec6
authored
Aug 12, 2025
by
aa.gustiana@gmail.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Update admin bypass condition in auth_from function for better logging control
1 parent
6b22a423
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
4 deletions
opensipkd/base/tools/api.py
opensipkd/base/tools/api.py
View file @
df875ec
...
@@ -26,7 +26,7 @@ def auth_from(request, field=None):
...
@@ -26,7 +26,7 @@ def auth_from(request, field=None):
raise
JsonRpcInvalidLoginError
raise
JsonRpcInvalidLoginError
# bypass cek authentication for development
# bypass cek authentication for development
if
http_userid
==
'admin'
and
request
.
devel
:
if
http_userid
==
'admin'
and
log
.
parent
.
level
==
logging
.
DEBUG
:
return
user
return
user
time_stamp
=
validate_time
(
request
)
time_stamp
=
validate_time
(
request
)
...
@@ -88,9 +88,6 @@ def get_user_device(request, user_id):
...
@@ -88,9 +88,6 @@ def get_user_device(request, user_id):
# user_device = renew_token(user_device)
# user_device = renew_token(user_device)
return
user_device
return
user_device
def
auth_device
(
request
):
def
auth_device
(
request
):
env
=
request
.
environ
env
=
request
.
environ
log
.
info
(
env
)
log
.
info
(
env
)
...
...
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