From aec178ee8bb34257d439c78ca85d239c05316b6f Mon Sep 17 00:00:00 2001 From: Fabien O'Carroll Date: Fri, 7 Dec 2018 18:59:47 +0700 Subject: [PATCH] Removed hash after password reset --- ghost/sdk/theme-dropin/src/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ghost/sdk/theme-dropin/src/index.js b/ghost/sdk/theme-dropin/src/index.js index f0b5304a0a..8efa6f665b 100644 --- a/ghost/sdk/theme-dropin/src/index.js +++ b/ghost/sdk/theme-dropin/src/index.js @@ -24,6 +24,9 @@ DomReady(function () { const [tokenMatch, token] = query.match(/token=([a-zA-Z0-9-_]+.[a-zA-Z0-9-_]+.[a-zA-Z0-9-_]+)/) || []; if (tokenMatch) { return members.resetPassword({token}) + .then(() => { + window.location.hash = ''; + }) .then(reload); } }