fix: remove duplicate catch block causing startup crash
This commit is contained in:
@@ -80,12 +80,6 @@ function createUiRouter({ auth, MOCK_USERS, authLimiter }) {
|
|||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} catch (e) {
|
|
||||||
req.session.destroy(() =>
|
|
||||||
res.redirect('/login?error=' + encodeURIComponent('Токен недействителен, войдите заново'))
|
|
||||||
);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
next();
|
next();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user