summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/views/_sila/Login/Login.vue13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/views/_sila/Login/Login.vue b/src/views/_sila/Login/Login.vue
index db6a6a09..4c8fd4a6 100644
--- a/src/views/_sila/Login/Login.vue
+++ b/src/views/_sila/Login/Login.vue
@@ -128,15 +128,14 @@ export default {
);
})
.then((passwordChangeRequired) => {
- if (passwordChangeRequired) {
- setTimeout(() => {
+ // For some reason, the request fails if there is a redirect after it
+ setTimeout(() => {
+ if (passwordChangeRequired) {
window.location.href = '/change-password';
- }, 1000);
- } else {
- setTimeout(() => {
+ } else {
window.location.href = '/';
- }, 1000);
- }
+ }
+ }, 1000);
})
.catch((error) => console.log(error))
.finally(() => (this.disableSubmitButton = false));