Skip to content

Commit 173216e

Browse files
committed
Update README
1 parent f4fe23e commit 173216e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
};

0 commit comments

Comments
 (0)