summaryrefslogtreecommitdiff
path: root/iridescence/src/views/Admin.vue
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2020-12-27 16:16:53 -0500
committerAdam T. Carpenter <atc@53hor.net>2020-12-27 16:16:53 -0500
commit9c02faa06170d7d3140bf252d1dca4630e4b0172 (patch)
treecc82e2c6044f0acf3f03cd5ac2482c55b7da029a /iridescence/src/views/Admin.vue
parent91b538c776071a7ae60adfa25bfcaccc0403896e (diff)
downloadtheglassyladies-9c02faa06170d7d3140bf252d1dca4630e4b0172.tar.xz
theglassyladies-9c02faa06170d7d3140bf252d1dca4630e4b0172.zip
moved more deploy-specific data to config, finalized login process
Diffstat (limited to 'iridescence/src/views/Admin.vue')
-rw-r--r--iridescence/src/views/Admin.vue9
1 files changed, 9 insertions, 0 deletions
diff --git a/iridescence/src/views/Admin.vue b/iridescence/src/views/Admin.vue
index 5274740..f1cf227 100644
--- a/iridescence/src/views/Admin.vue
+++ b/iridescence/src/views/Admin.vue
@@ -27,6 +27,15 @@ export default {
ProductEditList,
NewProduct,
ProductSearch
+ },
+ beforeRouteEnter: (to, from, next) => {
+ fetch(process.env.VUE_APP_LOGIN_URL).then(res => {
+ if (res.status == 401) {
+ next(false);
+ } else {
+ next();
+ }
+ });
}
};
</script>