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:
4242``` vue
4343// Login.vue
4444<template>
45- <form @submit.prevent="onSubmit(email)" class="login-form">
45+ <form @submit.prevent="onSubmit(email, password )" class="login-form">
4646 <!-- email & password inputs, etc. -->
4747 </form>
4848</template>
@@ -53,10 +53,11 @@ export default {
5353 data() {
5454 return {
5555 email: null,
56+ password: null,
5657 };
5758 },
5859 methods: {
59- async onSubmit(email) {
60+ async onSubmit(email, password ) {
6061 const response = await login(email, password);
6162
6263 // NOTE: This session token must be generated
@@ -69,7 +70,6 @@ export default {
6970 //
7071 // Redirect user to logged in page
7172 //
72- this.$router.push({ path: "/stores" });
7373 }
7474 }
7575};
You can’t perform that action at this time.
0 commit comments