Removed excess logging
This commit is contained in:
@@ -52,9 +52,6 @@ const validateDetails = async (body) => {
|
|||||||
return 'Invalid username';
|
return 'Invalid username';
|
||||||
}
|
}
|
||||||
|
|
||||||
//check for existing (banned)
|
|
||||||
//TODO: re-add banned email checks
|
|
||||||
|
|
||||||
//check for existing email
|
//check for existing email
|
||||||
const emailRecord = await accounts.findOne({
|
const emailRecord = await accounts.findOne({
|
||||||
where: {
|
where: {
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ const route = async (req, res) => {
|
|||||||
//delete the pending signup
|
//delete the pending signup
|
||||||
pendingSignups.destroy({
|
pendingSignups.destroy({
|
||||||
where: {
|
where: {
|
||||||
username: req.query.username || ''
|
username: info.username || ''
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -43,13 +43,9 @@ const route = async (req, res) => {
|
|||||||
|
|
||||||
if (!probe.ok) {
|
if (!probe.ok) {
|
||||||
console.error('Could not probe the post validation hook');
|
console.error('Could not probe the post validation hook');
|
||||||
} else {
|
|
||||||
console.log('Validation hook probe successful'); //TODO: remove this
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//discard the result
|
//discard the result
|
||||||
} else {
|
|
||||||
console.log('No validation hook'); //TODO: remove this
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user