Skip to content

Instantly share code, notes, and snippets.

@wataruoguchi
Last active July 2, 2019 03:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wataruoguchi/fc8ef897889f4f2e938ed9c6ad2440d5 to your computer and use it in GitHub Desktop.
Save wataruoguchi/fc8ef897889f4f2e938ed9c6ad2440d5 to your computer and use it in GitHub Desktop.
// src/views/SignIn.vue
<script>
import {signIn} from '@/utils/auth.js' // Adding this line
export default {
name: "SignIn",
...
methods: {
submit() {
if (this.$refs.form.validate()) {
console.log(`SIGN IN username: ${this.username}, password: ${this.password}`);
signIn(this.username, this.password); // Adding this line as well
}
},
},
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment