From 8d08cfe1c9e9f88b60adb7a7531c7e492bcfdedb Mon Sep 17 00:00:00 2001 From: "Mr. Lin" Date: Mon, 26 Feb 2024 13:36:17 +0800 Subject: [PATCH] fix: incorrectly checking whether registration is allowed in the login v1 api (#2998) fix: Incorrectly checking whether registration is allowed in the login interface, resulting in the inability to log in through apiv1 --- api/v1/auth.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/api/v1/auth.go b/api/v1/auth.go index bae0b7fd..ee132656 100644 --- a/api/v1/auth.go +++ b/api/v1/auth.go @@ -64,9 +64,6 @@ func (s *APIV1Service) SignIn(c echo.Context) error { if err != nil { return echo.NewHTTPError(http.StatusInternalServerError, "Failed to find system setting").SetInternal(err) } - if workspaceGeneralSetting.DisallowSignup { - return echo.NewHTTPError(http.StatusUnauthorized, "signup is disabled").SetInternal(err) - } if workspaceGeneralSetting.DisallowPasswordLogin { return echo.NewHTTPError(http.StatusUnauthorized, "password login is deactivated").SetInternal(err) }