mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
Fixed JWT regex
This commit is contained in:
parent
9b105e7590
commit
cf6822ba36
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue