-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #482 from bluewave-labs/467-fix-email-service
fix invite and reset passwd email service
- Loading branch information
Showing
20 changed files
with
283 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ DEV_DB_NAME=onboarding_db | |
DEV_DB_HOST=db | ||
DEV_DB_PORT=5432 | ||
|
||
EMAIL_ENABLE=false | ||
EMAIL_ENABLE=true | ||
|
||
# JWT Secret Key | ||
JWT_SECRET="NKrbO2lpCsOpVAlqAPsjZ0tZXzIoKru7gAmYZ7XlHn0=qqwqeq" | ||
|
@@ -19,8 +19,18 @@ TEST_DB_NAME=onboarding_db_test | |
TEST_DB_HOST=localhost | ||
TEST_DB_PORT=5432 | ||
|
||
EMAIL=[email protected] | ||
EMAIL_PASSWORD=passwor | ||
EMAIL_HOST=smtp.gmail.com | ||
EMAIL_PORT=465 | ||
APP_PASSWORD=ukzwakckupguegiw | ||
EMAIL_ENABLE=true | ||
|
||
ENABLE_IP_CHECK=false | ||
# Allowed IP range for the API "baseIp/rangeStart-rangeEnd" (e.g. 192.168.1/1-255) separated by comma | ||
ALLOWED_IP_RANGE=11.22.33/10-200, 192.168.65/1-255 | ||
# Allowed IP addresses for the API separated by comma | ||
ALLOWED_IPS=127.0.0.1, 11.22.33.44, 11.22.33.45, 11.22.33.46, 192.168.65.1 | ||
|
||
# FRONTEND_URL=https://onboarding-demo.bluewavelabs.ca/ | ||
FRONTEND_URL=http://localhost:4173/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<p>Hello,</p> | ||
<p>You’ve been invited to join Guidefox - a platform designed to help you build better user experiences.</p> | ||
<p>To get started, simply click the link below to create your account:</p> | ||
<p><a href="{{inviteLink}}">Join Guidefox</a></p> | ||
<p>Once you’ve created your account, you’ll be able to log in and start exploring all the features we’ve prepared for you.</p> | ||
<p>We’re excited to have you with us and can’t wait for you to experience Guidefox!</p> | ||
<p>--<br>The Guidefox Team</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
<h1>Password Reset</h1> | ||
<p>Hi {{name}},</p> | ||
<p>Please use the following link to reset your password:</p> | ||
<a href="{{resetLink}}">Reset Password</a> | ||
<p>Hello {{name}},</p> | ||
<p>We received a request to reset your password for your Guidefox account. If you didn’t request a password reset, you can safely ignore this email.</p> | ||
<p>To reset your password, click the link below:</p> | ||
<a href="{{resetLink}}">Reset My Password</a> | ||
<p>Thank you for using Guidefox!</p> | ||
<p>--<br>The Guidefox Team</p> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
require('dotenv').config(); | ||
|
||
module.exports = Object.freeze({ | ||
JWT_EXPIRES_IN_1H: '1h', | ||
JWT_EXPIRES_IN_20M: '20m', | ||
TOKEN_LIFESPAN: 3600 * 1000, | ||
// API_BASE_URL: 'https://onboarding-demo.bluewavelabs.ca/api/', | ||
API_BASE_URL: 'localhost:3000/api/', | ||
MAX_FILE_SIZE: 3 * 1024 * 1024, | ||
ROLE: { | ||
ADMIN: '1', | ||
MEMBER: '2' | ||
}, | ||
MAX_ORG_NAME_LENGTH: 100, | ||
ORG_NAME_REGEX: /^[a-zA-Z0-9\s\-_&.]+$/, | ||
URL_PROTOCOL_REGEX: /^(https?:\/\/)/, | ||
URL_DOMAIN_REGEX: /^https?:\/\/([a-zA-Z0-9.-]+\.[a-zA-Z]{2,})/, | ||
}); | ||
|
||
JWT_EXPIRES_IN_1H: '1h', | ||
JWT_EXPIRES_IN_20M: '20m', | ||
TOKEN_LIFESPAN: 3600 * 1000, | ||
API_BASE_URL: process.env.API_BASE_URL || 'localhost:3000/api/', | ||
FRONTEND_URL: process.env.FRONTEND_URL, | ||
MAX_FILE_SIZE: 3 * 1024 * 1024, | ||
ROLE: { | ||
ADMIN: '1', | ||
MEMBER: '2' | ||
}, | ||
MAX_ORG_NAME_LENGTH: 100, | ||
ORG_NAME_REGEX: /^[a-zA-Z0-9\s\-_&.]+$/, | ||
URL_PROTOCOL_REGEX: /^(https?:\/\/)/, | ||
URL_DOMAIN_REGEX: /^https?:\/\/([a-zA-Z0-9.-]+\.[a-zA-Z]{2,})/, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.