Fix login not working due to missing js variable..
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user