Skip to content

Instantly share code, notes, and snippets.

@wataruoguchi
Last active July 2, 2019 03:35
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/bcda9b8863d07ee1d994fb4906e68e64 to your computer and use it in GitHub Desktop.
Save wataruoguchi/bcda9b8863d07ee1d994fb4906e68e64 to your computer and use it in GitHub Desktop.
// src/views/SignUpConfirm.vue
<script>
import {confirmSignUp, resendSignUp} from '@/utils/auth.js' // Adding this line
export default {
name: "SignUpConfirm",
...
methods: {
submit() {
if (this.$refs.form.validate()) {
console.log(`CONFIRM username: ${this.username}, code: ${this.code}`);
confirmSignUp(this.username, this.code); // Adding this line as well
}
},
resend() {
console.log(`RESEND username: ${this.username}`);
resendSignUp(this.username); // Adding this line as well
}
},
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment