diff --git a/.env b/.env index f8653c2..0cd0472 100644 --- a/.env +++ b/.env @@ -3,6 +3,7 @@ VITE_PRIVACY_POLICY_URL='https://mapswipe.org/{locale}/privacy/' VITE_IMPRINT_URL= VITE_APP_LOGO='./img/mapswipe-white.svg' VITE_PROJECTS_FALLBACK_IMAGE="./img/map-pin-600x400.jpg" +VITE_ALLOW_UNVERIFIED_USERS=true # Locales VITE_DEFAULT_LOCALE=en diff --git a/src/components/AppBanner.vue b/src/components/AppBanner.vue index 5247240..4ad3889 100644 --- a/src/components/AppBanner.vue +++ b/src/components/AppBanner.vue @@ -16,12 +16,16 @@ export default defineComponent({ isVerified() { return this.currentUserStore.currentUser?.emailVerified }, + allowUnverifiedUsers() { + const allow = import.meta.env.VITE_ALLOW_UNVERIFIED_USERS + return allow + }, }, })