diff --git a/app/components/Auth/LoginForm.vue b/app/components/Auth/LoginForm.vue index d271f7a..5306d20 100644 --- a/app/components/Auth/LoginForm.vue +++ b/app/components/Auth/LoginForm.vue @@ -39,8 +39,9 @@ const onSubmit = handleSubmit(async (values) => { }) // Is the connection secure? -const isSecureConnection = computed(() => { - return window.location.protocol === 'https:' +const isSecureConnection = ref(false) +onMounted(() => { + isSecureConnection.value = window.location.protocol === 'https:' }) @@ -80,15 +81,17 @@ const isSecureConnection = computed(() => { {{ isSubmitting ? 'Wird angemeldet...' : 'Anmelden' }} - -
-
-
+
+