lint fixes
parent
f8e9d2c20b
commit
827a701e30
|
@ -1,5 +1,5 @@
|
||||||
import jsonwebtoken from 'jsonwebtoken';
|
import jsonwebtoken from 'jsonwebtoken';
|
||||||
import { ClientCredentials, ResourceOwnerPassword, AuthorizationCode } from 'simple-oauth2';
|
import { AuthorizationCode } from 'simple-oauth2';
|
||||||
import log4js from 'log4js';
|
import log4js from 'log4js';
|
||||||
import { AUTH_OAUTH_ERR_GOOGLE, AUTH_OAUTH_ERR_GOOGLE_FAILED_TOKEN_FETCH } from '../../../consistency/terms';
|
import { AUTH_OAUTH_ERR_GOOGLE, AUTH_OAUTH_ERR_GOOGLE_FAILED_TOKEN_FETCH } from '../../../consistency/terms';
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ import { isAuthenticated } from '../../../middlewares/authentication';
|
||||||
|
|
||||||
const router = express.Router();
|
const router = express.Router();
|
||||||
|
|
||||||
router.get('/authentication/twofactor/enrol', isAuthenticated, async (req, res) => {
|
router.get('/authentication/twofactor/enrol', isAuthenticated, async () => {
|
||||||
// TODO: implementation
|
// TODO: implementation
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -20,8 +20,6 @@ function runAsyncWrapper(callback) {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
let models;
|
|
||||||
|
|
||||||
// FIXME: already provided in auth.js
|
// FIXME: already provided in auth.js
|
||||||
router.post('/auth', bodyParser.urlencoded({ extended: true }), runAsyncWrapper(async (req, res) => {
|
router.post('/auth', bodyParser.urlencoded({ extended: true }), runAsyncWrapper(async (req, res) => {
|
||||||
const signIn = await controllers.authentication.signIn(req.body.email, req.body.password);
|
const signIn = await controllers.authentication.signIn(req.body.email, req.body.password);
|
||||||
|
|
Loading…
Reference in New Issue