Patched some holes when poking with curl

This commit is contained in:
2021-07-24 20:04:35 +10:00
parent 46ded91c41
commit c63e14ddf3
8 changed files with 49 additions and 26 deletions
+2 -2
View File
@@ -11,11 +11,11 @@ const route = async (req, res) => {
//check the given info
if (!info) {
return res.status(401).send('validation failed');
return res.status(401).send('Validation failed');
}
if (info.token != req.query.token) {
return res.status(401).send('tokens do not match');
return res.status(401).send('Tokens do not match');
}
//move data to the accounts table