From cf6822ba368dd3918d588e57d54d30ab2bb58d5e Mon Sep 17 00:00:00 2001 From: Fabien O'Carroll Date: Fri, 7 Dec 2018 16:21:52 +0700 Subject: [PATCH] Fixed JWT regex --- ghost/sdk/theme-dropin/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/sdk/theme-dropin/src/index.js b/ghost/sdk/theme-dropin/src/index.js index 9108847c41..f0b5304a0a 100644 --- a/ghost/sdk/theme-dropin/src/index.js +++ b/ghost/sdk/theme-dropin/src/index.js @@ -21,7 +21,7 @@ DomReady(function () { const [hashMatch, hash, query] = window.location.hash.match(/^#([^?]+)\??(.*)$/) || []; if (hashMatch && hash === 'reset-password') { - const [tokenMatch, token] = query.match(/token=([a-zA-z-_]+.[a-zA-Z-_]+.[a-zA-Z-_]+)/) || []; + 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(reload);