Password change needs to require user login to reset some cookies

closes #1793
This commit is contained in:
Dane Everitt
2019-12-28 12:07:42 -08:00
parent 5f13531c69
commit 158958d82d
3 changed files with 25 additions and 8 deletions

View File

@@ -34,8 +34,8 @@ export default () => {
clearFlashes('account:password');
updateAccountPassword({ ...values })
.then(() => {
resetForm();
addFlash({ key: 'account:password', type: 'success', message: 'Your password has been updated.' });
// @ts-ignore
window.location = '/auth/login';
})
.catch(error => addFlash({
key: 'account:password',