feat: sidebar item permissions + admin nav edit
This commit is contained in:
@@ -25,7 +25,7 @@ const bruteforce = new ExpressBrute(new BruteKnex({
|
||||
router.get('/login', async (req, res, next) => {
|
||||
_.set(res.locals, 'pageMeta.title', 'Login')
|
||||
|
||||
if (req.query.legacy || req.get('user-agent').indexOf('Trident') >= 0) {
|
||||
if (req.query.legacy || (req.get('user-agent') && req.get('user-agent').indexOf('Trident') >= 0)) {
|
||||
const { formStrategies, socialStrategies } = await WIKI.models.authentication.getStrategiesForLegacyClient()
|
||||
res.render('legacy/login', {
|
||||
err: false,
|
||||
|
||||
Reference in New Issue
Block a user