diff --git a/frontend_nuxt/pages/signup.vue b/frontend_nuxt/pages/signup.vue index 43c066abb..d57296ea4 100644 --- a/frontend_nuxt/pages/signup.vue +++ b/frontend_nuxt/pages/signup.vue @@ -69,7 +69,7 @@
-
+ @@ -111,9 +111,11 @@ const passwordError = ref('') const code = ref('') const isWaitingForEmailSent = ref(false) const isWaitingForEmailVerified = ref(false) +const inviteToken = ref('') onMounted(async () => { username.value = route.query.u || '' + inviteToken.value = route.query.invite_token || '' try { const res = await fetch(`${API_BASE_URL}/api/config`) if (res.ok) { @@ -205,14 +207,17 @@ const verifyCode = async () => { isWaitingForEmailVerified.value = false } } +const signupWithGoogle = () => { + googleAuthorize(inviteToken.value) +} const signupWithGithub = () => { - githubAuthorize() + githubAuthorize(inviteToken.value) } const signupWithDiscord = () => { - discordAuthorize() + discordAuthorize(inviteToken.value) } const signupWithTwitter = () => { - twitterAuthorize() + twitterAuthorize(inviteToken.value) }