recovery form, fix email service

This commit is contained in:
Alex Holliday committed 2026-02-06 22:14:42 +00:00
1 parent 16e8035299
commit 6a0f3426b3
5 files changed
+66 -7

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ class SettingsRoutes {
initRoutes() {
this.router.get("/", this.settingsController.getAppSettings);
this.router.put("/", isAllowed(["admin", "superadmin"]), this.settingsController.updateAppSettings);
this.router.patch("/", isAllowed(["admin", "superadmin"]), this.settingsController.updateAppSettings);
this.router.post("/test-email", isAllowed(["admin", "superadmin"]), this.settingsController.sendTestEmail);
}
@@ -29,18 +29,18 @@ class EmailService {
this.mjml2html = mjml2html;
this.nodemailer = nodemailer;
this.logger = logger;
this.init();
this.templateLookup = {};
this.loadTemplate = () => {
return () => {};
};
this.init();
}
get serviceName() {
return EmailService.SERVICE_NAME;
}
init = async () => {
init = () => {
this.loadTemplate = (templateName) => {
try {
const templatePath = this.path.join(__dirname, `../../templates/${templateName}.mjml`);