bugfix - broken authentication verification
This commit is contained in:
parent
61bdabc9fb
commit
abd2a3d3ea
@ -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"));
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user