diff --git a/lib/middleware/simple-authentication.js b/lib/middleware/simple-authentication.js index 0276f28576..d4ead337c3 100644 --- a/lib/middleware/simple-authentication.js +++ b/lib/middleware/simple-authentication.js @@ -7,8 +7,7 @@ function unsecureAuthentication(app) { app.post('/api/admin/login', (req, res) => { const user = req.body; req.session.user = new User({ email: user.email }); - res - .status(200) + res.status(200) .json(req.session.user) .end(); });