You've already forked AstralRinth
forked from didirus/AstralRinth
Remove all uses of process.env.domain (#247)
* Remove all uses of `process.env.domain` * Remove broken link on logout on revoke token page
This commit is contained in:
@@ -37,7 +37,7 @@ export default async function (context) {
|
|||||||
|
|
||||||
if (!context.$auth.user) {
|
if (!context.$auth.user) {
|
||||||
return context.redirect(
|
return context.redirect(
|
||||||
`${context.$axios.defaults.baseURL}auth/init?url=${process.env.domain}${context.route.fullPath}`
|
`${context.$axios.defaults.baseURL}auth/init?url=${context.store.app.$config.utils.domain}${context.route.fullPath}`
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,11 +51,9 @@
|
|||||||
export default {
|
export default {
|
||||||
components: {},
|
components: {},
|
||||||
methods: {
|
methods: {
|
||||||
async logout() {
|
logout() {
|
||||||
this.$cookies.set('auth-token-reset', true)
|
this.$cookies.set('auth-token-reset', true)
|
||||||
await this.$router.replace(
|
window.location.href = '/'
|
||||||
`auth/init?url=${process.env.domain}${this.$route.fullPath}`
|
|
||||||
)
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user