1
0
Fork 0

bugfix - broken authentication verification

This commit is contained in:
Ruben Meyer 2020-03-07 00:44:32 +01:00
parent 61bdabc9fb
commit abd2a3d3ea
1 changed files with 3 additions and 2 deletions

View File

@ -38,8 +38,9 @@ functions.authenticateUser = (obj, callback) => {
try {
if(typeof body !== "object") body = JSON.parse(body);
return callback(err, body.access);
} catch(e) {}
callback(new Error("Body is misformed"));
} catch(e) {
callback(new Error("Body is misformed"));
}
});
};