Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

fix: incorrectly checking whether registration is allowed in the login v1 api (#2998)

Mr. Lin8d08cfe1c9e9
diff --git a/api/v1/auth.go b/api/v1/auth.go
index bae0b7fd6..ee132656b 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)
}