Merge pull request #376 from Mavyre/main

fix: added discord and telegram linking verification on sign up page
dependabot/npm_and_yarn/esbuild-0.25.0
Harvey Tindall 1 month ago committed by GitHub
commit 3133996f33
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -337,11 +337,13 @@ func (app *appContext) PostNewUserFromInvite(nu NewUserData, req ConfirmationKey
// FIXME: figure these out in a nicer way? this relies on the current ordering,
// which may not be fixed.
if discordEnabled {
discordUser = req.completeContactMethods[0].User.(*DiscordUser)
if telegramEnabled {
if req.completeContactMethods[0].User != nil {
discordUser = req.completeContactMethods[0].User.(*DiscordUser)
}
if telegramEnabled && req.completeContactMethods[1].User != nil {
telegramUser = req.completeContactMethods[1].User.(*TelegramUser)
}
} else if telegramEnabled {
} else if telegramEnabled && req.completeContactMethods[0].User != nil {
telegramUser = req.completeContactMethods[0].User.(*TelegramUser)
}
}

Loading…
Cancel
Save