From 09b35b77d966b6d8690569be2f21036af6ffd936 Mon Sep 17 00:00:00 2001 From: Kate von Roeder Date: Tue, 14 Jan 2014 13:58:38 -0800 Subject: [PATCH] Prevent stacking of password mismatch notification on /reset/ closes #1902 - Missing call to clearEverything caused the new notifications to pile up on multiple failed submissions --- ghost/admin/views/login.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ghost/admin/views/login.js b/ghost/admin/views/login.js index 4a5676f7ce..acf196f0f1 100644 --- a/ghost/admin/views/login.js +++ b/ghost/admin/views/login.js @@ -212,6 +212,7 @@ ne2Password = this.$('input[name="ne2password"]').val(); if (newPassword !== ne2Password) { + Ghost.notifications.clearEverything(); Ghost.notifications.addItem({ type: 'error', message: "Your passwords do not match.",