This commit is contained in:
asyncnomi 2023-01-08 22:21:47 +01:00
parent 3c6e2e3780
commit edfb7e80bf

View file

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