diff --git a/resources/js/Pages/Auth/Login.vue b/resources/js/Pages/Auth/Login.vue
index 614e28a..26eeb1d 100644
--- a/resources/js/Pages/Auth/Login.vue
+++ b/resources/js/Pages/Auth/Login.vue
@@ -2,12 +2,12 @@
@@ -34,32 +34,14 @@ export default {
Logo,
TextInput,
},
- props: {
- errors: Object,
- },
data() {
return {
- sending: false,
- form: {
+ form: this.$inertia.form({
email: 'johndoe@example.com',
password: 'secret',
remember: null,
- },
+ }),
}
},
- methods: {
- submit() {
- const data = {
- email: this.form.email,
- password: this.form.password,
- remember: this.form.remember,
- }
-
- this.$inertia.post(this.route('login.attempt'), data, {
- onStart: () => this.sending = true,
- onFinish: () => this.sending = false,
- })
- },
- },
}