debugging

This commit is contained in:
adueck 2023-12-17 11:03:55 +04:00
parent d2a11a8004
commit 9acd645478
3 changed files with 4 additions and 1 deletions

View File

@ -30,7 +30,7 @@ const transporter = nodemailer.createTransport({
});
async function sendEmail(to: Address, subject: string, text: string) {
await transporter.sendMail({
return await transporter.sendMail({
from: adminAddress,
to,
subject,

View File

@ -157,12 +157,14 @@ export async function createNewUser(
lastLogin: now,
lastActive: now,
};
console.log("SENDING VERIFICATION EMAIL FROM SIGNUP");
await sendVerificationEmail({
name: input.name,
uid: userId,
email: input.email || "",
token: email.token,
});
console.log("GOT THROUGH AFTER VERIFICATION");
const user = await insertLingdocsUser(newUser);
return user;
}

View File

@ -190,6 +190,7 @@ const authRouter = (passport: PassportStatic) => {
});
} catch (e) {
console.error(e);
console.error("EMAIL DIDN'T WORK 2");
return res.send("Invalid E-mail");
}
} catch (e) {