diff --git a/lib/middleware/simple-authentication.js b/lib/middleware/simple-authentication.js index d4ead337c3..0276f28576 100644 --- a/lib/middleware/simple-authentication.js +++ b/lib/middleware/simple-authentication.js @@ -7,7 +7,8 @@ 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(); });