fix: update email template

This commit is contained in:
Mrugesh Mohapatra
2018-07-28 12:34:27 +05:30
committed by Stuart Taylor
parent 8c2af37b29
commit 57ceee0897
4 changed files with 8 additions and 4 deletions

View File

@ -210,6 +210,10 @@ module.exports = function enableAuthentication(app) {
router.get(
'/passwordless-change',
(req, res) => res.redirect(301, '/confirm-email')
);
router.get(
'/confirm-email',
ifNoUserRedirectHome,
passwordlessGetValidators,
getPasswordlessAuth

View File

@ -6,6 +6,7 @@ const EXCLUDED_PATHS = [
'/signout',
'/accept-privacy-terms',
'/update-email',
'/confirm-email',
'/passwordless-change',
'/external/services/user'
];

View File

@ -4,6 +4,7 @@ const EXCLUDED_PATHS = [
'/signout',
'/accept-privacy-terms',
'/update-email',
'/confirm-email',
'/passwordless-change',
'/external/services/user'
];

View File

@ -1,8 +1,6 @@
Thank you for updating your email address.
Please confirm this address for freeCodeCamp:
Please confirm your updated email address by clicking this link:
<%= host %>/passwordless-change?email=<%= loginEmail %>&token=<%= loginToken %>&emailChange=<%= emailChange %>
<%= host %>/confirm-email?email=<%= loginEmail %>&token=<%= loginToken %>&emailChange=<%= emailChange %>
Happy coding!