From 236cdc795f181affad1361d96e4a833944bbb160 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Tue, 16 Aug 2016 13:13:52 -0400 Subject: [PATCH] Better messaging when changing email address Fixes #1695 --- static/js/pages/user-view.js | 1 + static/partials/user-view.html | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/static/js/pages/user-view.js b/static/js/pages/user-view.js index dba93ca31..ff15d0c4d 100644 --- a/static/js/pages/user-view.js +++ b/static/js/pages/user-view.js @@ -121,6 +121,7 @@ var errorDisplay = ApiService.errorDisplay('Could not change email address', callback); ApiService.changeUserDetails(details).then(function() { + $scope.context.emailAwaitingChange = $scope.changeEmailInfo.email; callback(true); }, errorDisplay); }; diff --git a/static/partials/user-view.html b/static/partials/user-view.html index 8d51c8313..3a7e3950d 100644 --- a/static/partials/user-view.html +++ b/static/partials/user-view.html @@ -112,7 +112,12 @@ Email Address: - {{ context.viewuser.email }} +
+ An email has been sent to {{ context.emailAwaitingChange }}. Please click the Confirm button + to apply the email change. +
+ + {{ context.viewuser.email }} @@ -148,7 +153,7 @@ dialog-action-title="Change Email" dialog-form="context.emailform">
- Please enter a new email address. A verification email will be sent before being applied. + Please enter a new email address. A verification email will be sent before the change is applied.