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 166bffbe
authored
Apr 20, 2026
by
aa.gustiana@gmail.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
refactor bad request handling and update users.csv data
1 parent
176ede75
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
opensipkd/base/__init__.py
opensipkd/base/scripts/data/users.csv
pyproject.toml
opensipkd/base/__init__.py
View file @
166bffb
...
...
@@ -777,9 +777,7 @@ def bad_request_view(exc, request):
# Arahkan ulang ke halaman login (misalnya route 'login')
request
.
session
.
flash
(
"Permintaan tidak valid. Silakan ulangi kembali. atau origin tidak diizinkan."
,
"error"
)
_logging
.
debug
(
f
"Bad Request: {exc} from {request.url}"
)
_logging
.
debug
(
f
"RFeferrer: {request.referrer} or {request.route_url('base-home')}"
)
referrer
=
request
.
referrer
or
request
.
route_url
(
'base-home'
)
referrer
=
request
.
route_url
(
'base-home'
)
response
=
HTTPFound
(
location
=
referrer
)
response
.
headers
.
extend
(
headers
)
return
response
...
...
opensipkd/base/scripts/data/users.csv
View file @
166bffb
email,status,user_name,registered_date
admin@localhost,1,admin,
guest@local.host,1,guest,
\ No newline at end of file
pyproject.toml
View file @
166bffb
...
...
@@ -4,7 +4,9 @@ build-backend = 'setuptools.build_meta'
[tool.setuptools]
packages
=
[
"opensipkd"
,
"opensipkd.detable"
,
"opensipkd.base"
]
#data-file = [
#("etc/base", ["etc/ojdbc8.jar", "etc/osipkd.service"]),
#]
[tool.mypy]
exclude
=
[
'bak'
,
...
...
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