Removed hash after password reset

This commit is contained in:
Fabien O'Carroll 2018-12-07 18:59:47 +07:00
parent cf6822ba36
commit aec178ee8b

View File

@ -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);
}
}