Browse Source
Merge pull request #349 from Ponkhy/redirect-after-setup
Auto login after setup
pull/353/head
Louis Lam
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
1 deletions
-
src/pages/Setup.vue
|
@ -85,7 +85,12 @@ export default { |
|
|
this.$root.toastRes(res) |
|
|
this.$root.toastRes(res) |
|
|
|
|
|
|
|
|
if (res.ok) { |
|
|
if (res.ok) { |
|
|
this.$router.push("/") |
|
|
this.processing = true; |
|
|
|
|
|
|
|
|
|
|
|
this.$root.login(this.username, this.password, (res) => { |
|
|
|
|
|
this.processing = false; |
|
|
|
|
|
this.$router.push("/") |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|