Fixing bug where display name was not set correctly.

pull/238/head
Nick Gerakines 5 years ago
parent 659392ac4f
commit f7995bee48
  1. 5
      oauth.go

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

Loading…
Cancel
Save