This commit is contained in:
Benjamin Toby 2024-07-13 12:37:06 +01:00
parent 012d945bb9
commit af6cb025a7
2 changed files with 2 additions and 3 deletions

View File

@ -1,4 +1,3 @@
<h1>One Time Code</h1>
<p>Please use this code to login</p> <p>Please use this code to login</p>
<h2>{{code}}</h2> <h2>{{code}}</h2>
<p>Please not that this code expires after 10 minutes</p> <p>Please note that this code expires after 15 minutes</p>

View File

@ -106,7 +106,7 @@ async function localSendEmailCode({
}>`; }>`;
mailObject["sender"] = sender || "support@datasquirel.com"; mailObject["sender"] = sender || "support@datasquirel.com";
mailObject["to"] = email; mailObject["to"] = email;
mailObject["subject"] = "One Time Email Login Code"; mailObject["subject"] = "One Time Login Code";
mailObject["html"] = fs mailObject["html"] = fs
.readFileSync( .readFileSync(
path.resolve(__dirname, "one-time-code.html"), path.resolve(__dirname, "one-time-code.html"),