This commit is contained in:
2024-04-10 10:09:56 +02:00
parent 9fa1059301
commit bf04b9c563
12 changed files with 230 additions and 241 deletions

View File

@@ -9,6 +9,7 @@ const user = useSupabaseUser()
const router = useRouter()
const colorMode = useColorMode()
const dataStore = useDataStore()
const toast = useToast()
const isLight = computed({
get () {
@@ -43,9 +44,12 @@ const onSubmit = async (data) => {
password: data.password
})
if(error) {
console.log(error.toString())
if(error.toString().toLowerCase().includes("invalid")){
toast.add({title:"Zugangsdaten falsch",color:"rose"})
}
} else {
console.log("Login Successful")
//console.log("Login Successful")
dataStore.initializeData(user.id)
router.push("/")