Skip to content

Commit

Permalink
mail change
Browse files Browse the repository at this point in the history
  • Loading branch information
shihjay2 committed Oct 6, 2024
1 parent ec52adc commit 304a825
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion do-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ EOF
read -e -p "Enter your Root Domain Name (domain.com): " -i "" ROOT_DOMAIN
read -e -p "Enter your E-Mail address for Let's Encrypt ([email protected]): " -i "" EMAIL
read -e -p "Enter your MAIA URL (maia_domain.com): " -i "" MAIA_URL
read -e -p "Enter your Trustee Proxy URL (proxy_domain.com): " -i "" OIDC_RELAY_URL
read -e -p "Enter your DigitalOcean API Token: " -i "" DIGITALOCEAN_API_TOKEN
read -e -p "Enter your CouchDB/Traefik Password for admin user: " -i "" COUCHDB_PASSWORD
read -e -p "Enter your From Email: " -i "" FROM_EMAIL
Expand Down Expand Up @@ -175,7 +176,7 @@ ssh_post_data1()
{"key": "AUTH", "value": "magic"},
{"key": "USPSTF_KEY", "value": "$USPSTF_KEY"},
{"key": "UMLS_KEY", "value": "$UMLS_KEY"},
{"key": "OIDC_RELAY_URL", "value": "$OIDC_RELAY_URL"}
{"key": "OIDC_RELAY_URL", "value": "https://$OIDC_RELAY_URL"}
],
"routes": [
{"path": "/"}
Expand Down
8 changes: 4 additions & 4 deletions pages/api/as/sendmail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
// subject: '',
// title: '',
// previewtext: '',
// paragraphtext: '',
// paragraphtext2: '',
// paragraphtext: '' (btoa('')),
// paragraphtext2: '' (btoa('')),
// link: 'https://example.com',
// buttonstyle: 'display:block' || 'display:none',
// buttontext: ''
Expand All @@ -41,8 +41,8 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
const htmlFinal = htmlContent.replace(/[\r\n]+/gm, '')
.replace('@title', req.body.title)
.replace('@previewtext', req.body.previewtext)
.replace('@paragraphtext', req.body.paragraphtext)
.replace('@2paragraphtext', req.body.paragraphtext2)
.replace('@paragraphtext', atob(req.body.paragraphtext))
.replace('@2paragraphtext', atob(req.body.paragraphtext2))
.replaceAll('@link', req.body.link)
.replace('@buttonstyle', req.body.buttonstyle)
.replace('@buttontext', req.body.buttontext);
Expand Down
6 changes: 3 additions & 3 deletions pages/newPatient/[email].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,9 @@ const NewPatient = () => {
) : (
<div>
<p>Your Trustee Account is now Active!</p>
<p>After 30 days, an email will ask you to provide payment information for your subscription.</p>
<p>Your personal health record is <Link href={url} target="_blank">{linkTitle}</Link></p>
<Button variant="contained" component="a" href="/myTrustee">Continue to review and modify the policies that control your Trustee.</Button>
<p><Link href="/myTrustee">Click here to review and modify the policies that control your resources in Trustee.</Link></p>
<p>Your personal health record is located at <Link href={url} target="_blank">{linkTitle}</Link></p>
<Button variant="contained" component="a" href={url} target="_blank">Continue to your personal health record</Button>
</div>
)}
</div>
Expand Down

0 comments on commit 304a825

Please sign in to comment.