|
|
|
@ -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(); |
|
|
|
|