mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
Removed hash after password reset
This commit is contained in:
parent
cf6822ba36
commit
aec178ee8b
1 changed files with 3 additions and 0 deletions
|
@ -24,6 +24,9 @@ DomReady(function () {
|
||||||
const [tokenMatch, token] = query.match(/token=([a-zA-Z0-9-_]+.[a-zA-Z0-9-_]+.[a-zA-Z0-9-_]+)/) || [];
|
const [tokenMatch, token] = query.match(/token=([a-zA-Z0-9-_]+.[a-zA-Z0-9-_]+.[a-zA-Z0-9-_]+)/) || [];
|
||||||
if (tokenMatch) {
|
if (tokenMatch) {
|
||||||
return members.resetPassword({token})
|
return members.resetPassword({token})
|
||||||
|
.then(() => {
|
||||||
|
window.location.hash = '';
|
||||||
|
})
|
||||||
.then(reload);
|
.then(reload);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue