lint fixes

pull/4/head
Cameron Clough 2022-03-22 23:32:44 +00:00
parent f8e9d2c20b
commit 827a701e30
No known key found for this signature in database
GPG Key ID: BFB3B74B026ED43F
3 changed files with 2 additions and 4 deletions

View File

@ -1,5 +1,5 @@
import jsonwebtoken from 'jsonwebtoken';
import { ClientCredentials, ResourceOwnerPassword, AuthorizationCode } from 'simple-oauth2';
import { AuthorizationCode } from 'simple-oauth2';
import log4js from 'log4js';
import { AUTH_OAUTH_ERR_GOOGLE, AUTH_OAUTH_ERR_GOOGLE_FAILED_TOKEN_FETCH } from '../../../consistency/terms';

View File

@ -4,7 +4,7 @@ import { isAuthenticated } from '../../../middlewares/authentication';
const router = express.Router();
router.get('/authentication/twofactor/enrol', isAuthenticated, async (req, res) => {
router.get('/authentication/twofactor/enrol', isAuthenticated, async () => {
// TODO: implementation
});

View File

@ -20,8 +20,6 @@ function runAsyncWrapper(callback) {
};
}
let models;
// FIXME: already provided in auth.js
router.post('/auth', bodyParser.urlencoded({ extended: true }), runAsyncWrapper(async (req, res) => {
const signIn = await controllers.authentication.signIn(req.body.email, req.body.password);