mirror of
https://github.com/Mueller-Patrick/Betterzon.git
synced 2026-10-17 19:41:30 +00:00
BETTERZON-146: Session handling rewrite HOTFIX
This commit is contained in:
1 parent
0118ac6861
commit
1fd115c2a2
1 file changed
+2
-2
@@ -25,8 +25,8 @@ crawlingstatusRouter.get('/', async (req: Request, res: Response) => {
|
|||||||
try {
|
try {
|
||||||
// Authenticate user
|
// Authenticate user
|
||||||
const user_ip = req.connection.remoteAddress ?? '';
|
const user_ip = req.connection.remoteAddress ?? '';
|
||||||
const session_id = req.body.session_id;
|
const session_id = req.params.session_id;
|
||||||
const session_key = req.body.session_key;
|
const session_key = req.params.session_key;
|
||||||
const user = await UserService.checkSession(session_id, session_key, user_ip);
|
const user = await UserService.checkSession(session_id, session_key, user_ip);
|
||||||
|
|
||||||
if (!user.is_admin) {
|
if (!user.is_admin) {
|
||||||
|
|||||||
Reference in new issue
Block a user