File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ Set the session token using the `setSessionToken` plugin method:
42
42
``` vue
43
43
// Login.vue
44
44
<template>
45
- <form @submit.prevent="onSubmit(email)" class="login-form">
45
+ <form @submit.prevent="onSubmit(email, password )" class="login-form">
46
46
<!-- email & password inputs, etc. -->
47
47
</form>
48
48
</template>
@@ -53,10 +53,11 @@ export default {
53
53
data() {
54
54
return {
55
55
email: null,
56
+ password: null,
56
57
};
57
58
},
58
59
methods: {
59
- async onSubmit(email) {
60
+ async onSubmit(email, password ) {
60
61
const response = await login(email, password);
61
62
62
63
// NOTE: This session token must be generated
@@ -69,7 +70,6 @@ export default {
69
70
//
70
71
// Redirect user to logged in page
71
72
//
72
- this.$router.push({ path: "/stores" });
73
73
}
74
74
}
75
75
};
You can’t perform that action at this time.
0 commit comments