mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-22 17:10:10 +00:00
fix: added discord and telegram linking verification on sign up page
This commit is contained in:
parent
0ccc314833
commit
dda363b344
@ -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,
|
// FIXME: figure these out in a nicer way? this relies on the current ordering,
|
||||||
// which may not be fixed.
|
// which may not be fixed.
|
||||||
if discordEnabled {
|
if discordEnabled {
|
||||||
|
if req.completeContactMethods[0].User != nil {
|
||||||
discordUser = req.completeContactMethods[0].User.(*DiscordUser)
|
discordUser = req.completeContactMethods[0].User.(*DiscordUser)
|
||||||
if telegramEnabled {
|
}
|
||||||
|
if telegramEnabled && req.completeContactMethods[1].User != nil {
|
||||||
telegramUser = req.completeContactMethods[1].User.(*TelegramUser)
|
telegramUser = req.completeContactMethods[1].User.(*TelegramUser)
|
||||||
}
|
}
|
||||||
} else if telegramEnabled {
|
} else if telegramEnabled && req.completeContactMethods[0].User != nil {
|
||||||
telegramUser = req.completeContactMethods[0].User.(*TelegramUser)
|
telegramUser = req.completeContactMethods[0].User.(*TelegramUser)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user