@ -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,6 +81,7 @@ const isSecureConnection = computed(() => {
{ { isSubmitting ? 'Wird angemeldet...' : 'Anmelden' } }
{ { isSubmitting ? 'Wird angemeldet...' : 'Anmelden' } }
< / Button >
< / Button >
< ClientOnly >
<!-- Secure Connection Text -- >
<!-- Secure Connection Text -- >
< p v-if ="!isSecureConnection" class="flex items-center justify-center gap-2 text-sm text-white/70" >
< p v-if ="!isSecureConnection" class="flex items-center justify-center gap-2 text-sm text-white/70" >
< ShieldAlert :size ="16" class = "flex-shrink-0 text-error" / >
< ShieldAlert :size ="16" class = "flex-shrink-0 text-error" / >
@ -89,6 +91,7 @@ const isSecureConnection = computed(() => {
< ShieldCheck :size ="16" class = "flex-shrink-0 text-success" / >
< ShieldCheck :size ="16" class = "flex-shrink-0 text-success" / >
< span class = "text-success" > Die Datenübertragung erfolgt verschlüsselt < / span >
< span class = "text-success" > Die Datenübertragung erfolgt verschlüsselt < / span >
< / p >
< / p >
< / ClientOnly >
< / form >
< / form >
< / template >
< / template >