mirror of
https://github.com/writeas/writefreely
synced 2025-02-04 03:27:34 +01:00
Fixing bug where display name was not set correctly.
This commit is contained in:
parent
659392ac4f
commit
f7995bee48
5
oauth.go
5
oauth.go
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user