Merge pull request #7800 from reasonerjt/oidc-onboard-user-name-v1.8

Set the real name of OIDC user when onboarding -cherrypick to 1.8 branch
This commit is contained in:
Wang Yan 2019-05-15 11:36:51 +08:00 committed by GitHub
commit a9204541a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -194,6 +194,7 @@ func (oc *OIDCController) Onboard() {
}
user := models.User{
Username: username,
Realname: d.Username,
Email: email,
OIDCUserMeta: &oidcUser,
Comment: oidcUserComment,