From 33546c34adba2a0dbd5d587cfcf6814c3e2cf755 Mon Sep 17 00:00:00 2001 From: remy siminel Date: Tue, 10 Dec 2024 18:06:22 +0100 Subject: [PATCH] add email info + changelog --- CHANGELOG.md | 1 + config/test.json | 4 ++++ core/project.service.js | 6 +++++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 31b3ae46..b110b84e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ * increase size of input field in users page * add a readonly input field under email for showing the email domain* * Add "custom_users" key to config file, to be used with various scripts +* Add email sent to a project owner when their project is activated ## 1.4.31 (2024-09-27) diff --git a/config/test.json b/config/test.json index 21414ca4..a6fe8d11 100644 --- a/config/test.json +++ b/config/test.json @@ -257,10 +257,14 @@ ], "activated_project": [ "Your requested project '#NAME#' has been approved and activated by an admin in My.", + "It is for members of the '#GROUP#' group, you can find it at the following path:", + "'#PATH#'", "Congratulations!" ], "activated_project_html": [ "

Your requested project '#NAME#' has been approved and activated by an admin in My.

", + "

It is for members of the '#GROUP#' group, you can find it at the following path:

", + "

'#PATH#'

", "

Congratulations!

" ], "add_to_project": [ diff --git a/core/project.service.js b/core/project.service.js index 6456847f..a02e2666 100644 --- a/core/project.service.js +++ b/core/project.service.js @@ -65,7 +65,11 @@ async function create_project(new_project, uuid, action_owner = 'auto') { 'name': 'ask_project', 'destinations': msg_destinations, 'subject': 'Project ' + new_project.id + ' created' - }, { '#NAME#': new_project.id }); + }, { + '#NAME#': new_project.id, + '#PATH#': new_project.path, + '#GROUP#':new_project.group + }); } catch(error) { logger.error(error); }