Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix wrong email when use gitea as OAuth2 provider (#7640) #7647

Merged
merged 1 commit into from
Jul 27, 2019

Commits on Jul 27, 2019

  1. fix wrong email when use gitea as OAuth2 provider (go-gitea#7640)

    when you use gitea as OAuth2 provider, the /api/v1/user should return
    user primary email as identifier, which is unique in OAuth2 clients.
    
    this patch use convert.ToUser replace all u.APIFormat in api requests,
    return primary email when caller is yourself or admin.
    renothing committed Jul 27, 2019
    Configuration menu
    Copy the full SHA
    37656ce View commit details
    Browse the repository at this point in the history