Password change needs to require user login to reset some cookies
closes #1793
This commit is contained in:
parent
5f13531c69
commit
158958d82d
3 changed files with 25 additions and 8 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue