Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: remove disallow signup guard for OAuth login (#4647)

ecmadao8a8f4dc693c1
diff --git a/backend/server/auth.go b/backend/server/auth.go
index 05216639e1..807b0ac5bb 100644
--- a/backend/server/auth.go
+++ b/backend/server/auth.go
@@ -129,9 +129,6 @@ func (s *Server) registerAuthRoutes(g *echo.Group) {
// Create a new user if not exist
if user == nil {
- if s.profile.DisallowSignup {
- return echo.NewHTTPError(http.StatusForbidden, "Sign up is disallowed")
- }
if userInfo.PublicEmail == "" {
profileLink := "https://docs.github.com/en/account-and-profile"
if authProvider == api.PrincipalAuthProviderGitlabSelfHost {
diff --git a/frontend/src/views/auth/Signup.vue b/frontend/src/views/auth/Signup.vue
index c26d8f6ae6..84b433a28b 100644
--- a/frontend/src/views/auth/Signup.vue
+++ b/frontend/src/views/auth/Signup.vue
@@ -280,7 +280,7 @@ export default defineComponent({
state.password &&
!state.showPasswordMismatchError &&
state.acceptTermsAndPolicy &&
- !disallowSignup
+ !disallowSignup.value
);
});