Handle password reset logic change for 2fa

This commit is contained in:
Dane Everitt 2018-07-04 18:11:43 -07:00
parent af9af78938
commit 6419b1cf81
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -97,6 +97,11 @@
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;
})
.catch(function (err) {