feat(frontend): Use betterAuth implementation from nuxthub-better-auth project
This commit is contained in:
@@ -30,6 +30,7 @@ definePageMeta({ layout: 'auth' })
|
||||
useSeoMeta({ title: 'Login' })
|
||||
|
||||
const toast = useToast()
|
||||
const { signIn } = useAuth()
|
||||
|
||||
const fields = [
|
||||
{
|
||||
@@ -81,7 +82,7 @@ function onSubmit(payload: FormSubmitEvent<Schema>) {
|
||||
alert('Bitte alle Felder ausfüllen')
|
||||
return
|
||||
}
|
||||
authClient.signIn.email(
|
||||
signIn.email(
|
||||
{
|
||||
email: payload.data.email,
|
||||
password: payload.data.password
|
||||
|
||||
Reference in New Issue
Block a user