@opengis/fastify-table 2.0.4 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -43,7 +43,7 @@ export default async function recoveryFunction(req, reply) {
|
|
|
43
43
|
// return reply.status(400).send('not enough params');
|
|
44
44
|
const customPt = await getTemplate("pt", template);
|
|
45
45
|
const pt = customPt ||
|
|
46
|
-
(await readFile(path.join(dirname,
|
|
46
|
+
(await readFile(path.join(dirname, `../../../../../templates/pt/${template}.html`), "utf8"));
|
|
47
47
|
const recoveryCodes = await pg
|
|
48
48
|
.query(`select social_auth_obj->'codesArray' as "recoveryCodes" from admin.users_social_auth
|
|
49
49
|
where uid = $1 and social_auth_type = $2`, [uid, "TOTP"])
|
|
@@ -55,7 +55,7 @@ export default async function verifyFunction(req, reply) {
|
|
|
55
55
|
?.then((el) => el.rows?.[0] || {});
|
|
56
56
|
const customPt = await getTemplate("pt", template);
|
|
57
57
|
const pt = customPt ||
|
|
58
|
-
(await readFile(path.join(dirname,
|
|
58
|
+
(await readFile(path.join(dirname, `../../../../../templates/pt/${template}.html`), "utf8"));
|
|
59
59
|
const html = await handlebars.compile(pt)({
|
|
60
60
|
recoveryCodes,
|
|
61
61
|
domain: `${req.protocol || "https"}://${req.hostname}`,
|