From 63c604b077e838ca97a21ee49c7696c53494f9b0 Mon Sep 17 00:00:00 2001 From: philc Date: Thu, 23 May 2024 19:06:05 +0200 Subject: [PATCH] remove public key in recovery email --- models/Pagans.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/models/Pagans.js b/models/Pagans.js index afc5635..f26f76d 100644 --- a/models/Pagans.js +++ b/models/Pagans.js @@ -136,7 +136,14 @@ Pagans.sendmailkey = (data) => { } } const tplemail = require(path.resolve(tplfile)) - + /* + Remove from attachments for less user confusing + { + filename:`${person.alias}_publickey.txt`, + content: person.publickey, + contentType:"text/plain" + }, + */ const maildata = { from:tplemail.sender, to: person.email, @@ -144,11 +151,6 @@ Pagans.sendmailkey = (data) => { html: Mustache.render(tplemail.html, person), text: Mustache.render(tplemail.text, person), attachments: [ - { - filename:`${person.alias}_publickey.txt`, - content: person.publickey, - contentType:"text/plain" - }, { filename:`${person.alias}_privatekey.txt`, content: person.privatekey,