fix: fix creating users with wrong login type (#3929)

This commit is contained in:
Jon Ayers
2022-09-07 10:37:15 -05:00
committed by GitHub
parent 69f430257c
commit ad24404018

View File

@ -364,7 +364,7 @@ func (api *API) oauthLogin(r *http.Request, params oauthLoginParams) (*http.Cook
Username: params.Username,
OrganizationID: organizationID,
},
LoginType: database.LoginTypeOIDC,
LoginType: params.LoginType,
})
if err != nil {
return xerrors.Errorf("create user: %w", err)