Skip to content

Instantly share code, notes, and snippets.

@wataruoguchi
Last active July 2, 2019 03:34
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/60b902eeb620120ab16e55878d2051eb to your computer and use it in GitHub Desktop.
Save wataruoguchi/60b902eeb620120ab16e55878d2051eb to your computer and use it in GitHub Desktop.
// src/views/SignUp.vue
<script>
import {signUp} from '@/utils/auth.js' // Adding this line
export default {
name: "SignUp",
...
methods: {
submit() {
if (this.$refs.form.validate()) {
console.log(`SIGN UP username: ${this.username}, password: ${this.password}, email: ${this.username}`);
signUp(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