turn registration on and off- remove VUE_APP_

This commit is contained in:
ogerly 2021-04-29 12:06:55 +02:00
parent 7c3b5c72c6
commit d473069d0a
4 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@ ENV NODE_ENV="production"
## App relevant Envs
ENV PORT="3000"
## Register in App true || false
ENV VUE_APP_ALLOW_REGISTER="true"
ENV ALLOW_REGISTER="true"
# Labels
LABEL org.label-schema.build-date="${BUILD_DATE}"

View File

@ -6,7 +6,7 @@ const environment = {
NODE_ENV: process.env.NODE_ENV,
DEBUG: process.env.NODE_ENV !== 'production' || false,
PRODUCTION: process.env.NODE_ENV === 'production' || false,
VUE_APP_ALLOW_REGISTER: process.env.VUE_APP_ALLOW_REGISTER === 'true',
ALLOW_REGISTER: process.env.ALLOW_REGISTER === 'true',
}
const server = {

View File

@ -22,7 +22,7 @@ const router = new VueRouter({
},
})
if (CONFIG.VUE_APP_ALLOW_REGISTER) {
if (CONFIG.ALLOW_REGISTER) {
router.addRoute({
path: '/register',
component: () => import('../views/Pages/Register.vue'),

View File

@ -107,7 +107,7 @@ export default {
// rememberMe: false
},
loginfail: false,
allowRegister: CONFIG.VUE_APP_ALLOW_REGISTER,
allowRegister: CONFIG.ALLOW_REGISTER,
}
},
methods: {