@ -39,8 +39,9 @@ const onSubmit = handleSubmit(async (values) => {
} )
} )
/ / I s t h e c o n n e c t i o n s e c u r e ?
/ / I s t h e c o n n e c t i o n s e c u r e ?
const isSecureConnection = computed ( ( ) => {
const isSecureConnection = ref ( false )
return window . location . protocol === 'https:'
onMounted ( ( ) => {
isSecureConnection . value = window . location . protocol === 'https:'
} )
} )
< / script >
< / script >
@ -80,15 +81,17 @@ const isSecureConnection = computed(() => {
{ { isSubmitting ? 'Wird angemeldet...' : 'Anmelden' } }
{ { isSubmitting ? 'Wird angemeldet...' : 'Anmelden' } }
< / Button >
< / Button >
<!-- Secure Connection Text -- >
< ClientOnly >
< p v-if ="!isSecureConnection" class="flex items-center justify-center gap-2 text-sm text-white/70" >
<!-- Secure Connection Text -- >
< ShieldAlert :size ="16" class = "flex-shrink-0 text-error" / >
< p v-if ="!isSecureConnection" class="flex items-center justify-center gap-2 text-sm text-white/70" >
< span class = "text-error" > Die Datenübertragung erfolgt NICHT verschlüsselt < / span >
< ShieldAlert :size ="16" class = "flex-shrink-0 text-error" / >
< / p >
< span class = "text-error" > Die Datenübertragung erfolgt NICHT verschlüsselt < / span >
< p v -else class = "flex items-center justify-center gap-2 text-sm text-white/70" >
< / p >
< ShieldCheck :size ="16" class = "flex-shrink-0 text-success" / >
< p v -else class = "flex items-center justify-center gap-2 text-sm text-white/70" >
< span class = "text-success" > Die Datenübertragung erfolgt verschlüsselt < / span >
< ShieldCheck :size ="16" class = "flex-shrink-0 text-success" / >
< / p >
< span class = "text-success" > Die Datenübertragung erfolgt verschlüsselt < / span >
< / p >
< / ClientOnly >
< / form >
< / form >
< / template >
< / template >