From a0c470977789d3f4a9b86901cb437f13cb570422 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Sat, 8 Jul 2017 18:14:40 +0200 Subject: [PATCH] Fix typo --- examples/auth-routes/middleware/auth.js | 4 +--- examples/auth-routes/pages/secret.vue | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/auth-routes/middleware/auth.js b/examples/auth-routes/middleware/auth.js index 2aeeafef6b..fa4b73b642 100644 --- a/examples/auth-routes/middleware/auth.js +++ b/examples/auth-routes/middleware/auth.js @@ -1,7 +1,5 @@ -export default function ({ store, redirect, error }) { - // If user not connected, redirect to / +export default function ({ store, error }) { if (!store.state.authUser) { - // return redirect('/') error({ message: 'You are not connected', statusCode: 403 diff --git a/examples/auth-routes/pages/secret.vue b/examples/auth-routes/pages/secret.vue index c04a37363c..30dff34b4e 100644 --- a/examples/auth-routes/pages/secret.vue +++ b/examples/auth-routes/pages/secret.vue @@ -1,7 +1,7 @@