Changes in RLS and Tenants

Many Changes in Invoice Editor
Page Loading Rebuilt
Started Rights Management
This commit is contained in:
2024-01-30 21:18:46 +01:00
parent 3167b6a20a
commit fe74e7d91b
13 changed files with 885 additions and 527 deletions

View File

@@ -12,11 +12,24 @@ const {fetchData} = useDataStore()
const email = ref("")
const password = ref("")
const fields = [{
name: 'email',
type: 'text',
label: 'Email',
placeholder: 'E-Mail Adresse'
}, {
name: 'password',
label: 'Password',
type: 'password',
placeholder: 'Passwort'
}]
const onSubmit = async (data) => {
const onSubmit = async () => {
const { error } = await supabase.auth.signInWithPassword({
email: email.value,
password: password.value
email: data.email,
password: data.password
})
if(error) {
console.log(error.toString())
@@ -33,7 +46,7 @@ const onSubmit = async () => {
</script>
<template>
<div id="loginSite">
<!-- <div id="loginSite">
<div id="loginForm">
<UFormGroup
label="E-Mail:"
@@ -59,7 +72,23 @@ const onSubmit = async () => {
</UButton>
</div>
</div>
</div>-->
<UCard class="max-w-sm w-full mx-auto mt-5">
<UAuthForm
title="Login"
description="Geben Sie Ihre Anmeldedaten ein um Zugriff auf Ihren Account zu bekommen"
align="bottom"
icon="i-heroicons-user-circle"
:fields="fields"
:loading="false"
@submit="onSubmit"
>
</UAuthForm>
</UCard>
</template>
<style scoped>