Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: rename GitLabLogin to VCSLogin (#2073)
h3n4lf9f95d7c0344
diff --git a/api/auth.go b/api/auth.goindex 3c022d3b83..194944652a 100644--- a/api/auth.go+++ b/api/auth.go@@ -13,9 +13,8 @@ type AuthProvider struct {Secret string `jsonapi:"attr,secret"`}-// GitlabLogin is the API message for logins via Gitlab.-// TODO(jc): Rename to VCSLogin, https://linear.app/bbteam/issue/BYT-993-type GitlabLogin struct {+// VCSLogin is the API message for logining via VCS.+type VCSLogin struct {// VCSID is the ID of the chosen VCS role provider.VCSID int `jsonapi:"attr,vcsId"`// Name is the user configured name of the role provider.diff --git a/frontend/src/views/auth/Signin.vue b/frontend/src/views/auth/Signin.vueindex 01aa60cb92..00f1c47482 100644--- a/frontend/src/views/auth/Signin.vue+++ b/frontend/src/views/auth/Signin.vue@@ -230,7 +230,7 @@ export default defineComponent({if (payload.error) {return;}- const gitlabLoginInfo: VCSLoginInfo = {+ const vcsLoginInfo: VCSLoginInfo = {vcsId: state.activeAuthProvider.id,name: state.activeAuthProvider.name,code: payload.code,@@ -238,7 +238,7 @@ export default defineComponent({authStore.login({authProvider: state.activeAuthProvider.type,- payload: gitlabLoginInfo,+ payload: vcsLoginInfo,}).then(() => {router.push("/");diff --git a/server/auth.go b/server/auth.goindex 5c4e458de2..110739ef69 100644--- a/server/auth.go+++ b/server/auth.go@@ -76,7 +76,7 @@ func (s *Server) registerAuthRoutes(g *echo.Group) {}case api.PrincipalAuthProviderGitlabSelfHost, api.PrincipalAuthProviderGitHubCom:{- login := &api.GitlabLogin{}+ login := &api.VCSLogin{}if err := jsonapi.UnmarshalPayload(c.Request().Body, login); err != nil {return echo.NewHTTPError(http.StatusBadRequest, "Malformed login request").SetInternal(err)}