-
-
Save wataruoguchi/fc8ef897889f4f2e938ed9c6ad2440d5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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