mirror of
https://github.com/Mueller-Patrick/Betterzon.git
synced 2024-12-22 11:45:13 +00:00
BETTERZON-146: Session handling rewrite HOTFIX
This commit is contained in:
parent
0118ac6861
commit
1fd115c2a2
|
@ -25,8 +25,8 @@ crawlingstatusRouter.get('/', async (req: Request, res: Response) => {
|
|||
try {
|
||||
// Authenticate user
|
||||
const user_ip = req.connection.remoteAddress ?? '';
|
||||
const session_id = req.body.session_id;
|
||||
const session_key = req.body.session_key;
|
||||
const session_id = req.params.session_id;
|
||||
const session_key = req.params.session_key;
|
||||
const user = await UserService.checkSession(session_id, session_key, user_ip);
|
||||
|
||||
if (!user.is_admin) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user