From 8b891a4bed4ab82f91bb9ab251999d73234c6588 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Thu, 11 Jun 2026 14:19:01 +0400 Subject: [PATCH] fix: remove duplicate catch block causing startup crash --- ui/index.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/ui/index.js b/ui/index.js index fce0b3a..48958a2 100644 --- a/ui/index.js +++ b/ui/index.js @@ -80,12 +80,6 @@ function createUiRouter({ auth, MOCK_USERS, authLimiter }) { ); return; } - } catch (e) { - req.session.destroy(() => - res.redirect('/login?error=' + encodeURIComponent('Токен недействителен, войдите заново')) - ); - return; - } next(); });