diff --git a/app/components/Auth/LoginForm.vue b/app/components/Auth/LoginForm.vue index 5306d20..3ae4e01 100644 --- a/app/components/Auth/LoginForm.vue +++ b/app/components/Auth/LoginForm.vue @@ -4,7 +4,7 @@ import { z } from 'zod' import { useForm } from 'vee-validate' import { toTypedSchema } from '@vee-validate/zod' -import { AlertCircle, AlertTriangle, Loader2, ShieldCheck, ShieldAlert } from 'lucide-vue-next' +import { AlertCircle, Loader2 } from 'lucide-vue-next' const { login } = useAuth() @@ -37,12 +37,6 @@ const onSubmit = handleSubmit(async (values) => { submitError.value = error.message || 'Anmeldung fehlgeschlagen. Bitte versuche es erneut.' } }) - -// Is the connection secure? -const isSecureConnection = ref(false) -onMounted(() => { - isSecureConnection.value = window.location.protocol === 'https:' -}) diff --git a/app/components/ui/secure-connection-indicator/SecureConnectionIndicator.vue b/app/components/ui/secure-connection-indicator/SecureConnectionIndicator.vue new file mode 100644 index 0000000..7a06924 --- /dev/null +++ b/app/components/ui/secure-connection-indicator/SecureConnectionIndicator.vue @@ -0,0 +1,29 @@ + + + + + diff --git a/app/components/ui/secure-connection-indicator/index.ts b/app/components/ui/secure-connection-indicator/index.ts new file mode 100644 index 0000000..84a05f5 --- /dev/null +++ b/app/components/ui/secure-connection-indicator/index.ts @@ -0,0 +1 @@ +export { default as SecureConnectionIndicator } from './SecureConnectionIndicator.vue'