Browse Source

bugfix

tsMigration
Nareshkumar Rao 3 years ago
parent
commit
42b87ca407
  1. 4
      src/routes/LoginRoute.ts

4
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 {

Loading…
Cancel
Save