mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 19:33:02 +03:00
Removed hash after password reset
This commit is contained in:
parent
cf6822ba36
commit
aec178ee8b
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user