From 42b87ca4075e74a7e8495e02b18facbe5470b1f1 Mon Sep 17 00:00:00 2001 From: Nareshkumar Rao Date: Wed, 4 Aug 2021 00:08:05 +0200 Subject: [PATCH] bugfix --- src/routes/LoginRoute.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/LoginRoute.ts b/src/routes/LoginRoute.ts index 1548b0d..18f64ff 100644 --- a/src/routes/LoginRoute.ts +++ b/src/routes/LoginRoute.ts @@ -22,7 +22,7 @@ export function LoginRoute(req: LoginRequest, res: Response) { if (authorized) { // User is already logged in if (req.session.userTelegramID == telegramResponse.id) { - res.send(authorized); + res.send({authorized: authorized}); return; } const verified = req.session.isVerified; @@ -37,7 +37,7 @@ export function LoginRoute(req: LoginRequest, res: Response) { }); }); } else { - res.send(authorized); + res.send({authorized: authorized}); } }); } else {