Skip to content

Commit ee1167f

Browse files
committed
nit: s/fullName/name/g
1 parent c180ca6 commit ee1167f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

coderd/userauth.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -961,11 +961,11 @@ func (api *API) userOIDC(rw http.ResponseWriter, r *http.Request) {
961961

962962
// The 'name' is an optional property in Coder. If not specified,
963963
// it will be left blank.
964-
var fullName string
965-
fullNameRaw, ok := mergedClaims[api.OIDCConfig.NameField]
964+
var name string
965+
nameRaw, ok := mergedClaims[api.OIDCConfig.NameField]
966966
if ok {
967-
fullName, _ = fullNameRaw.(string)
968-
fullName = httpapi.NormalizeRealUsername(fullName)
967+
name, _ = nameRaw.(string)
968+
name = httpapi.NormalizeRealUsername(name)
969969
}
970970

971971
var picture string
@@ -974,7 +974,7 @@ func (api *API) userOIDC(rw http.ResponseWriter, r *http.Request) {
974974
picture, _ = pictureRaw.(string)
975975
}
976976

977-
ctx = slog.With(ctx, slog.F("email", email), slog.F("username", username), slog.F("name", fullName))
977+
ctx = slog.With(ctx, slog.F("email", email), slog.F("username", username), slog.F("name", name))
978978
usingGroups, groups, groupErr := api.oidcGroups(ctx, mergedClaims)
979979
if groupErr != nil {
980980
groupErr.Write(rw, r)
@@ -1012,7 +1012,7 @@ func (api *API) userOIDC(rw http.ResponseWriter, r *http.Request) {
10121012
AllowSignups: api.OIDCConfig.AllowSignups,
10131013
Email: email,
10141014
Username: username,
1015-
Name: fullName,
1015+
Name: name,
10161016
AvatarURL: picture,
10171017
UsingRoles: api.OIDCConfig.RoleSyncEnabled(),
10181018
Roles: roles,

0 commit comments

Comments
 (0)