Initial commit

This commit is contained in:
John Lyon-Smith
2018-02-22 17:57:27 -08:00
commit e80f5490d5
196 changed files with 38982 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
{
logDir: '',
uri: {
mongo: 'mongodb://localhost/dar-v1',
amqp: 'amqp://localhost',
redis: 'redis://localhost',
},
api: {
port: '3001',
loginKey: '6508b427b3cc486498671cfd7967218bd6b95fbb42f5e17a112f4c9e9900057c',
uploadTimout: 3600,
},
email: {
senderEmail: 'support@kingstonsoftware.solutions',
maxEmailTokenAgeInHours: 36,
maxPasswordTokenAgeInHours: 3,
sendEmailDelayInSeconds: 3,
supportEmail: 'support@kingstonsoftware.solutions',
sendEmail: true
}
}

View File

@@ -0,0 +1,7 @@
{
awsConfig: {
accessKeyId: 'AKIAJUP6XRVYDAXNTUNA',
secretAccessKey: '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',
region: 'us-west-2'
}
}

View File

@@ -0,0 +1,10 @@
{
logDir: '/var/log/deighton-ar',
api: {
port: '3001',
loginKey: '*',
uploadTimout: 120,
maxEmailTokenAgeInHours: 36,
sendEmailDelayInSeconds: 3
},
}

View File

@@ -0,0 +1,27 @@
# Email Templates
This directory contains the email templates used for various communications with the user. The list of templates is as follows:
| File Name | Description
|:------------ |:-----------
`welcome.txt/.html` | Sent to users when they are first added to the system. Should include welcome message, link to email confirmation page and notification of link expiration and support email.
`forgotPassword.txt/.html` | Sent to users when they click on the forgot password link. Should include the link to the reset and support email. Rate limited in production.
`changeEmailNew.txt/.html` | Sent to the old email of existing users when they are changing their email. Should include support email and the new email.
`changeEmailOld.txt/.html` | Sent to existing users when they are changing their email. Should include the link to email confirmation page and support email.
`accountDeleted.txt/.html` | Notification that the users account has been deleted from the system. Must include a support email.
Each template must have a text (`.txt`) version and can also have an HTML (`.html`) version. Both will be sent and it is up to the users email reader to decide which to use.
## List of Supported Data Fields
This is the the definitive list of supported data fields in emails.
Name | Value
---- | -----
`recipientFullName` | Full name of the user receiving the email
`confirmEmailLink` | URL that will take the user to confirming their email, and if necessary setting their password (for first time account setup.)
`confirmEmailLinkExpirationHours` | The number of hours before the given link expires
`senderFullName` | The full name of the user that initiated the action
`supportEmail` | The support email for the system
`recipientNewEmail` | The new email that is being set for the user
`resetPasswordLink` | A link that allows the user to reset their password

View File

@@ -0,0 +1,9 @@
Hello {{recipientFullName}}.
This email is for your records to indicated that your account for the Deighton AR system has been deleted.
Please contact {{supportEmail}} if you have any questions.
Regards,
{{senderFullName}}

View File

@@ -0,0 +1,13 @@
Hello {{recipientFullName}},
This message allows you to complete the process of changing your email. If you did not make this request please do not worry. Just ignore this email and your account will remain unchanged.
If you did make this request, please click on the following link to confirm your new email:
{{confirmEmailLink}}
If you have any questions, please contact us at {{supportEmail}}.
Regards,
Deighton

View File

@@ -0,0 +1,11 @@
Hello {{recipientFullName}},
This message is to inform you that a request was made to change your email to {{recipientNewEmail}}. If you did not make this request please do not worry. Just ignore this email and your account will remain unchanged.
If you did make this request, please see the message sent to your new email account for further instructions.
If you have any questions, please contact us at {{supportEmail}}.
Regards,
Deighton

View File

@@ -0,0 +1,11 @@
Hello {{recipientFullName}},
The following link will allow you to reset your password. Please paste it into your browser and you will be redirected to the Deighton AR site to set your new password:
{{resetPasswordLink}}
Please contact {{supportEmail}} if you have any questions or problems.
Regards,
Deighton

View File

@@ -0,0 +1,22 @@
{
accountDeleted: {
heading: 'Deighton AR Account Deleted Notification',
text: 'accountDeleted.txt'
},
changeEmailNew: {
heading: 'Deighton AR Change of Email Confirmation',
text: 'changeEmailNew.txt'
},
changeEmailOld: {
heading: 'Deighton AR Change of Email Request',
text: 'changeEmailOld.txt'
},
forgotPassword: {
heading: 'Deighton AR Password Reset Request',
text: 'forgotPassword.txt'
},
welcome: {
heading: 'Welcome to the Deighton AR System!',
text: 'welcome.txt'
}
}

View File

@@ -0,0 +1,15 @@
Hello {{recipientFullName}},
Thank you for joining the Deighton AR system!
Please paste this link into your browser to go to the Deighton AR system and set your login password:
{{confirmEmailLink}}
This invitation expires in {{confirmEmailLinkExpirationHours}} hours. If it has expired or you have any problems creating a password or logging into our system, please contact {{supportEmail}}.
Thank you and we look forward to working with you!
Sincerely,
{{senderFullName}}