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.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
fix: allow unauthenticated CreateUser for first user registration
Steven6926764b9155
diff --git a/server/router/api/v1/acl_config.go b/server/router/api/v1/acl_config.goindex 522fd2db6..4569e82b9 100644--- a/server/router/api/v1/acl_config.go+++ b/server/router/api/v1/acl_config.go@@ -18,6 +18,7 @@ var PublicMethods = map[string]struct{}{"/memos.api.v1.InstanceService/GetInstanceSetting": {},// User Service - public user profiles and stats+ "/memos.api.v1.UserService/CreateUser": {}, // Allow first user registration"/memos.api.v1.UserService/GetUser": {},"/memos.api.v1.UserService/GetUserAvatar": {},"/memos.api.v1.UserService/GetUserStats": {},diff --git a/server/router/api/v1/acl_config_test.go b/server/router/api/v1/acl_config_test.goindex 17f3c240f..7086ce837 100644--- a/server/router/api/v1/acl_config_test.go+++ b/server/router/api/v1/acl_config_test.go@@ -16,6 +16,7 @@ func TestPublicMethodsArePublic(t *testing.T) {"/memos.api.v1.InstanceService/GetInstanceProfile","/memos.api.v1.InstanceService/GetInstanceSetting",// User Service+ "/memos.api.v1.UserService/CreateUser","/memos.api.v1.UserService/GetUser","/memos.api.v1.UserService/GetUserAvatar","/memos.api.v1.UserService/GetUserStats",