diff --git a/index.js b/index.js index 85f9655..844b65c 100644 --- a/index.js +++ b/index.js @@ -97,7 +97,7 @@ fastify.post('/login', async (request, reply) => { let content = request.body; if (content.hasOwnProperty("user") && content.hasOwnProperty("password")) { - if (UsersBDD.hasOwnProperty(content.user) { + if (UsersBDD.hasOwnProperty(content.user)) { var hash; try { hash = CryptoJS.SHA512(content.password).toString();