Option to change the email address for users from the website. There will be a Change address option.
Enter the details for the new email address and proceed. It will show a success message and two emails will be sent one to the old email address as a notification and one to the new email address which contains a link to reset the email. On Clicking the link the email gets updated, for the corresponding user.
Mail to new Email Address
Mail to new Old Email Address
Users can continue to log in with their current email address and password until the new email address is verified. The expiration date for the confirmation is displayed in the confirmation email. A user can resubmit a request at any time to generate a new confirmation email. The confirmation email is a system-generated email and cannot be customized.
Updated files and code – Please see the Jira task and git for the code.
Modify CheckoutApplication/SuiteScript/checkout.ssp
Modify LoginRegister/Javascript/LoginRegister.View.js
Modify LoginRegister/Templates/login_register.tpl
Modify MyAccountApplication/SuiteScript/my_account.ssp
Modify Overview/Javascript/Overview.Home.View.js
Modify Overview/Templates/overview_home.tpl
Add Profile/Javascript/Profile.ChangeEmailAddress.Model.js
Add Profile/Javascript/Profile.ChangeEmailAddress.View.js
Modify Profile/Javascript/Profile.Information.View.js
Add Profile/Sass/_profile-change-email.scss
Modify Profile/SuiteScript/Profile.Model.js
Add Profile/Templates/profile_change_email.tpl
Modify Profile/Templates/profile_information.tpl