refactor: add form keys to auth useForm calls
This commit is contained in:
@@ -8,7 +8,7 @@ import AuthLayout from '@/layouts/AuthLayout.vue'
|
|||||||
|
|
||||||
const { config, flash } = useAuth()
|
const { config, flash } = useAuth()
|
||||||
|
|
||||||
const form = useForm({
|
const form = useForm('ForgotPasswordForm', {
|
||||||
email: '',
|
email: '',
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import AuthLayout from '@/layouts/AuthLayout.vue'
|
|||||||
|
|
||||||
const { config } = useAuth()
|
const { config } = useAuth()
|
||||||
|
|
||||||
const form = useForm({
|
const form = useForm('RegisterForm', {
|
||||||
username: '',
|
username: '',
|
||||||
first_name: '',
|
first_name: '',
|
||||||
last_name: '',
|
last_name: '',
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ const props = defineProps<{
|
|||||||
|
|
||||||
const { config } = useAuth()
|
const { config } = useAuth()
|
||||||
|
|
||||||
const form = useForm({
|
const form = useForm('ResetPasswordForm', {
|
||||||
token: props.token,
|
token: props.token,
|
||||||
email: props.email,
|
email: props.email,
|
||||||
password: '',
|
password: '',
|
||||||
|
|||||||
Reference in New Issue
Block a user