Fixing bug where display name was not set correctly.

This commit is contained in:
Nick Gerakines 2020-01-14 10:24:48 -05:00
parent 659392ac4f
commit f7995bee48
1 changed files with 5 additions and 0 deletions

View File

@ -224,6 +224,11 @@ func (h oauthHandler) viewOauthCallback(app *App, w http.ResponseWriter, r *http
return nil
}
displayName := tokenInfo.DisplayName
if len(displayName) == 0 {
displayName = tokenInfo.Username
}
tp := &oauthSignupPageParams{
AccessToken: tokenResponse.AccessToken,
TokenUsername: tokenInfo.Username,