Merge pull request #238 from writeas/oauth-bugfix-alias-signature
OAuth alias field not set correctly
This commit is contained in:
commit
c7b797929b
1 changed files with 5 additions and 0 deletions
5
oauth.go
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…
Add table
Reference in a new issue