diff --git a/server/auth/signup.js b/server/auth/signup.js index 3ed6b53..3b07d7a 100644 --- a/server/auth/signup.js +++ b/server/auth/signup.js @@ -52,9 +52,6 @@ const validateDetails = async (body) => { return 'Invalid username'; } - //check for existing (banned) - //TODO: re-add banned email checks - //check for existing email const emailRecord = await accounts.findOne({ where: { diff --git a/server/auth/validation.js b/server/auth/validation.js index 114e916..d38def5 100644 --- a/server/auth/validation.js +++ b/server/auth/validation.js @@ -30,7 +30,7 @@ const route = async (req, res) => { //delete the pending signup pendingSignups.destroy({ where: { - username: req.query.username || '' + username: info.username || '' } }); @@ -43,13 +43,9 @@ const route = async (req, res) => { if (!probe.ok) { console.error('Could not probe the post validation hook'); - } else { - console.log('Validation hook probe successful'); //TODO: remove this } //discard the result - } else { - console.log('No validation hook'); //TODO: remove this } };