Added more strict header allowence and was a error where endpoints for user was not using router, but app.

This commit is contained in:
2017-10-06 12:12:21 +02:00
parent 5e50d52344
commit 7e27e19a0d
2 changed files with 22 additions and 11 deletions

View File

@@ -14,6 +14,7 @@ const userSecurity = new UserSecurity();
function loginController(req, res) {
const user = new User(req.body.username);
const password = req.body.password;
// console.log('login: ', req.body)
userSecurity.login(user, password)
.then(() => {