Handle password reset logic change for 2fa
This commit is contained in:
parent
af9af78938
commit
6419b1cf81
1 changed files with 5 additions and 0 deletions
|
@ -97,6 +97,11 @@
|
||||||
throw new Error('An error was encountered while processing this login.');
|
throw new Error('An error was encountered while processing this login.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (response.data.send_to_login) {
|
||||||
|
self.success('Your password has been reset, please login to continue.');
|
||||||
|
return self.$router.push({ name: 'login' });
|
||||||
|
}
|
||||||
|
|
||||||
return window.location = response.data.redirect_to;
|
return window.location = response.data.redirect_to;
|
||||||
})
|
})
|
||||||
.catch(function (err) {
|
.catch(function (err) {
|
||||||
|
|
Loading…
Reference in a new issue