Fix login not working due to missing js variable..

This commit is contained in:
2020-07-03 19:40:36 +02:00
parent ecfbf7e2d2
commit 9ab5a10816
2 changed files with 2 additions and 7 deletions
+2 -3
View File
@@ -7,7 +7,7 @@
<div
class="bg-gray-800 border-teal-500 p-8 border-t-8 bg-white mb-6 rounded-lg shadow-lg"
>
<form @submit="userLogin">
<form @submit.prevent="userLogin">
<div class="mb-4">
<label
for="username"
@@ -76,8 +76,7 @@ export default {
},
}),
methods: {
userLogin(e) {
e.preventDefault()
userLogin() {
this.$auth
.loginWith('local', {
data: this.form,