1
0
mirror of https://github.com/matt-fidd/stratos.git synced 2026-01-01 18:19:25 +00:00

Lint cleanup with new rules

This commit is contained in:
2022-03-03 09:14:09 +00:00
parent 80291efc6d
commit c9e826d016
20 changed files with 104 additions and 57 deletions

View File

@@ -171,7 +171,7 @@ router.get('/password-reset/:uuid/:token', async (req, res) => {
let pr;
try {
pr = await new PasswordReset(uuid, token);
} catch(e) {
} catch (e) {
console.error(e);
return res.redirect('/password-reset');
}
@@ -214,7 +214,7 @@ router.post('/change-password', async (req, res) => {
fields.get('uuid'),
fields.get('token')
);
} catch(e) {
} catch (e) {
console.error(e);
return res.redirect('/password-reset');
}

View File

@@ -4,13 +4,15 @@ const express = require('express');
const router = express.Router();
router.get('/reports', (req, res, next) => {
/*
/* eslint-disable multiline-comment-style */
/*
return res.render('reports', {
title: 'Stratos - Reports',
current: 'Reports',
name: req.session.fullName
});
*/
*/
/* eslint-enable multiline-comment-style */
next();
});