now login is using username not email
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user