asyncnomi 3 years ago
parent
commit
edfb7e80bf
  1. 2
      index.js

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

Loading…
Cancel
Save