Skip to content

Commit 5687b39

Browse files
committed
fixup! fix(scim): ensure scim users aren't created with their own org
1 parent 85c886f commit 5687b39

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

coderd/userauth.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,8 @@ func (api *API) oauthLogin(r *http.Request, params oauthLoginParams) (*http.Cook
921921
Username: params.Username,
922922
OrganizationID: organizationID,
923923
},
924-
LoginType: params.LoginType,
924+
CreateOrganization: len(organizations) == 0,
925+
LoginType: params.LoginType,
925926
})
926927
if err != nil {
927928
return xerrors.Errorf("create user: %w", err)

0 commit comments

Comments
 (0)