mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
turn registration on and off- remove VUE_APP_
This commit is contained in:
parent
7c3b5c72c6
commit
d473069d0a
@ -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}"
|
||||
|
||||
@ -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 = {
|
||||
|
||||
@ -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'),
|
||||
|
||||
@ -107,7 +107,7 @@ export default {
|
||||
// rememberMe: false
|
||||
},
|
||||
loginfail: false,
|
||||
allowRegister: CONFIG.VUE_APP_ALLOW_REGISTER,
|
||||
allowRegister: CONFIG.ALLOW_REGISTER,
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user