From efc6b204c34d55338460b29c7a03be1d32e243aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9l=C3=A8ne=20Martin?= Date: Fri, 22 Sep 2023 21:38:50 -0700 Subject: [PATCH] Update email text because admins can make changes (#998) --- lib/formats/mail.js | 4 ++-- test/integration/api/users.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/formats/mail.js b/lib/formats/mail.js index 77e36ffda..b2eff6008 100644 --- a/lib/formats/mail.js +++ b/lib/formats/mail.js @@ -36,7 +36,7 @@ const messages = { accountCreatedForOidc: message('ODK Central account created', 'Hello!

An account has been provisioned for you on an ODK Central data collection server.

If this message is unexpected, simply ignore it. Otherwise, please go to {{{domain}}} to sign in.

'), // Notifies a user that their account's email has been changed - accountEmailChanged: message('ODK Central account email changed', 'Hello!

We are emailing because you have an ODK Central account, and somebody has just changed the email address associated with the account from this one you are reading right now ({{oldEmail}}) to a new address ({{newEmail}}).

If this was you, please feel free to ignore this email. Otherwise, please contact your local ODK system administrator immediately.

'), + accountEmailChanged: message('ODK Central account email changed', 'Hello!

We are emailing because you have an ODK Central account, and somebody has just changed the email address associated with the account from this one you are reading right now ({{oldEmail}}) to a new address ({{newEmail}}).

If this is expected, you can ignore this email. If it is not expected, please contact your ODK system administrator immediately.

'), // Notifies a user that a password reset has been initiated for their email; // gives them the link required to set their password. @@ -48,7 +48,7 @@ const messages = { accountResetDeleted: message('ODK Central account password reset', 'Hello!

A password reset has been requested for this email address, but the account has been deleted.

If this message is unexpected, simply ignore it. Otherwise, please double check the email address given for your account, and try contacting your ODK system administrator.

'), // Notifies a user that their password has been changed - accountPasswordChanged: message('ODK Central account password change', 'Hello!

We are emailing because you have an ODK Central account, and somebody has just changed its password.

If this was you, please feel free to ignore this email.

Otherwise, please contact your local ODK system administrator immediately.

') + accountPasswordChanged: message('ODK Central account password change', 'Hello!

We are emailing because you have an ODK Central account, and somebody has just changed its password.

If this is expected, you can ignore this email.

If it is not expected, please contact your ODK system administrator immediately.

') }; module.exports = { messages }; diff --git a/test/integration/api/users.js b/test/integration/api/users.js index 33d2217a2..08857f538 100644 --- a/test/integration/api/users.js +++ b/test/integration/api/users.js @@ -574,7 +574,7 @@ describe('api: /users', () => { global.inbox.length.should.equal(0); email.to.should.eql([{ address: 'alice@getodk.org', name: '' }]); email.subject.should.equal('ODK Central account email changed'); - email.html.should.equal('Hello!

We are emailing because you have an ODK Central account, and somebody has just changed the email address associated with the account from this one you are reading right now (alice@getodk.org) to a new address (david123@getodk.org).

If this was you, please feel free to ignore this email. Otherwise, please contact your local ODK system administrator immediately.

'); + email.html.should.equal('Hello!

We are emailing because you have an ODK Central account, and somebody has just changed the email address associated with the account from this one you are reading right now (alice@getodk.org) to a new address (david123@getodk.org).

If this is expected, you can ignore this email. If it is not expected, please contact your ODK system administrator immediately.

'); }))))); }