Skip to content

Commit ad24404

Browse files
authored
fix: fix creating users with wrong login type (#3929)
1 parent 69f4302 commit ad24404

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/userauth.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ func (api *API) oauthLogin(r *http.Request, params oauthLoginParams) (*http.Cook
364364
Username: params.Username,
365365
OrganizationID: organizationID,
366366
},
367-
LoginType: database.LoginTypeOIDC,
367+
LoginType: params.LoginType,
368368
})
369369
if err != nil {
370370
return xerrors.Errorf("create user: %w", err)

0 commit comments

Comments
 (0)