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( router.get(
'/passwordless-change', '/passwordless-change',
(req, res) => res.redirect(301, '/confirm-email')
);
router.get(
'/confirm-email',
ifNoUserRedirectHome, ifNoUserRedirectHome,
passwordlessGetValidators, passwordlessGetValidators,
getPasswordlessAuth getPasswordlessAuth

View File

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

View File

@ -4,6 +4,7 @@ const EXCLUDED_PATHS = [
'/signout', '/signout',
'/accept-privacy-terms', '/accept-privacy-terms',
'/update-email', '/update-email',
'/confirm-email',
'/passwordless-change', '/passwordless-change',
'/external/services/user' '/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 %>/confirm-email?email=<%= loginEmail %>&token=<%= loginToken %>&emailChange=<%= emailChange %>
<%= host %>/passwordless-change?email=<%= loginEmail %>&token=<%= loginToken %>&emailChange=<%= emailChange %>
Happy coding! Happy coding!