From 45f2e956d01e9d263a05d5c9d11dbab43f723336 Mon Sep 17 00:00:00 2001 From: Fabian Becker Date: Fri, 1 Aug 2014 08:56:29 +0000 Subject: [PATCH] Proper messaging on password reset fixes #3540 - Show proper message when reusing token - Show message after resetting password --- core/client/controllers/reset.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/client/controllers/reset.js b/core/client/controllers/reset.js index b0b9b9135d..bb24501198 100644 --- a/core/client/controllers/reset.js +++ b/core/client/controllers/reset.js @@ -32,8 +32,10 @@ var ResetController = Ember.Controller.extend(ValidationEngine, { } }).then(function (resp) { self.toggleProperty('submitting'); + self.notifications.showSuccess(resp.passwordreset[0].message, true); self.transitionToRoute('signin'); - }).catch(function (errors) { + }).catch(function (response) { + self.notifications.showAPIError(response); self.toggleProperty('submitting'); }); }).catch(function (error) {