This commit is contained in:
Benjamin Toby 2025-01-20 09:19:34 +01:00
parent 7d0f3e12f3
commit 8d809412bb
3 changed files with 3 additions and 6 deletions

View File

@ -28,7 +28,7 @@ function sendEmailCode(_a) {
const emailLoginTempCodeFieldName = temp_code_field_name
? temp_code_field_name
: defaultTempLoginFieldName;
const emailHtml = fs_1.default.readFileSync(path_1.default.resolve(__dirname, "../package-shared/html/one-time-code.html"), "utf-8");
const emailHtml = `<p>Please use this code to login</p>\n<h2>{{code}}</h2>\n<p>Please note that this code expires after 15 minutes</p>`;
/**
* Check for local DB settings
*

View File

@ -1,6 +1,6 @@
{
"name": "@moduletrace/datasquirel",
"version": "3.7.9",
"version": "3.8.0",
"description": "Cloud-based SQL data management tool",
"main": "dist/index.js",
"bin": {

View File

@ -45,10 +45,7 @@ export default async function sendEmailCode({
? temp_code_field_name
: defaultTempLoginFieldName;
const emailHtml = fs.readFileSync(
path.resolve(__dirname, "../package-shared/html/one-time-code.html"),
"utf-8"
);
const emailHtml = `<p>Please use this code to login</p>\n<h2>{{code}}</h2>\n<p>Please note that this code expires after 15 minutes</p>`;
/**
* Check for local DB settings