-
-
Save wataruoguchi/bcda9b8863d07ee1d994fb4906e68e64 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/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