fix: update email template
This commit is contained in:
committed by
Stuart Taylor
parent
8c2af37b29
commit
57ceee0897
@ -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
|
||||
|
@ -6,6 +6,7 @@ const EXCLUDED_PATHS = [
|
||||
'/signout',
|
||||
'/accept-privacy-terms',
|
||||
'/update-email',
|
||||
'/confirm-email',
|
||||
'/passwordless-change',
|
||||
'/external/services/user'
|
||||
];
|
||||
|
@ -4,6 +4,7 @@ const EXCLUDED_PATHS = [
|
||||
'/signout',
|
||||
'/accept-privacy-terms',
|
||||
'/update-email',
|
||||
'/confirm-email',
|
||||
'/passwordless-change',
|
||||
'/external/services/user'
|
||||
];
|
||||
|
@ -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!
|
||||
|
||||
|
Reference in New Issue
Block a user