now login is using username not email

This commit is contained in:
Geriano
2022-07-16 01:13:45 +07:00
parent 12f7a74e10
commit 0a92d68068
9 changed files with 35 additions and 20 deletions

View File

@@ -14,7 +14,7 @@ defineProps({
});
const form = useForm({
email: '',
username: '',
password: '',
remember: false,
});
@@ -45,11 +45,11 @@ const submit = () => {
<form @submit.prevent="submit">
<div>
<JetLabel for="email" value="Email" />
<JetLabel for="username" value="Username" />
<JetInput
id="email"
v-model="form.email"
type="email"
id="username"
v-model="form.username"
type="text"
class="mt-1 block w-full"
required
autofocus

View File

@@ -11,6 +11,7 @@ import JetValidationErrors from '@/Jetstream/ValidationErrors.vue';
const form = useForm({
name: '',
email: '',
username: '',
password: '',
password_confirmation: '',
terms: false,
@@ -58,6 +59,17 @@ const submit = () => {
/>
</div>
<div class="mt-4">
<JetLabel for="username" value="Username" />
<JetInput
id="username"
v-model="form.username"
type="text"
class="mt-1 block w-full"
required
/>
</div>
<div class="mt-4">
<JetLabel for="password" value="Password" />
<JetInput