Skip to content

Commit 70d639e

Browse files
committed
Remove obsolete middleware
1 parent b887b2b commit 70d639e

7 files changed

Lines changed: 2 additions & 17 deletions

File tree

nuxt.config.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,6 @@ const envWhitelist = [
1515
module.exports = {
1616
env: {
1717
// pages which do not require a login
18-
publicPages: [
19-
'auth-login',
20-
'auth-register',
21-
'auth-signup',
22-
'auth-reset',
23-
'auth-reset-token',
24-
'pages-slug',
25-
'test'
26-
],
2718
// pages to keep alive
2819
keepAlivePages: [
2920
'index'
@@ -130,8 +121,7 @@ module.exports = {
130121
router: {
131122
middleware: [
132123
'maintenance',
133-
'check-auth',
134-
'authenticated'
124+
'auth'
135125
],
136126
linkActiveClass: 'active-link'
137127
},

pages/auth/name.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@
6565
import RandomAvataaar from '~/components/Avatar/RandomAvataaar'
6666
6767
export default {
68-
middleware: 'authenticated',
6968
layout: 'blank',
7069
components: {
7170
RandomAvataaar

pages/auth/welcome.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
import {mapGetters} from 'vuex'
3232
3333
export default {
34-
middleware: 'authenticated',
3534
layout: 'blank',
3635
computed: {
3736
...mapGetters({

pages/contributions/write.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import ContributionsForm from '~/components/Contributions/ContributionsForm.vue'
1616
1717
export default {
18-
middleware: ['authenticated', 'verified'],
18+
middleware: ['verified'],
1919
mixins: [animatable],
2020
components: {
2121
ContributionsForm

pages/organizations/_slug.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@
183183
uploadingLogo: false
184184
}
185185
},
186-
middleware: ['authenticated'],
187186
async asyncData ({app, params, store, error}) {
188187
let organization
189188
if (!isEmpty(params) && !isEmpty(params.slug) && params.slug !== undefined) {

pages/organizations/create.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ import OrgaFormStep2 from "~/components/Organizations/steps/OrgaFormStep2.vue";
7979
import OrgaFormStep3 from "~/components/Organizations/steps/OrgaFormStep3.vue";
8080
8181
export default {
82-
middleware: "authenticated",
8382
layout: "blank",
8483
mixins: [animatable],
8584
components: {

pages/profile/_slug.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@
202202
isLoadingCanDos: false
203203
}
204204
},
205-
middleware: ['authenticated'],
206205
async asyncData ({ app, params, store, error }) {
207206
let user
208207
let isOwner = false

0 commit comments

Comments
 (0)