From 6419b1cf81e8f76ae79067f4fda51a192da341ff Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Wed, 4 Jul 2018 18:11:43 -0700 Subject: [PATCH] Handle password reset logic change for 2fa --- resources/assets/scripts/components/auth/ResetPassword.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/assets/scripts/components/auth/ResetPassword.vue b/resources/assets/scripts/components/auth/ResetPassword.vue index cda6716ac..ebfc588f8 100644 --- a/resources/assets/scripts/components/auth/ResetPassword.vue +++ b/resources/assets/scripts/components/auth/ResetPassword.vue @@ -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) {