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: check username in signup
Steven606a30640db3
diff --git a/server/route/api/v2/auth_service.go b/server/route/api/v2/auth_service.goindex ef4b139ff..dd1959e57 100644--- a/server/route/api/v2/auth_service.go+++ b/server/route/api/v2/auth_service.go@@ -189,6 +189,9 @@ func (s *APIV2Service) SignUp(ctx context.Context, request *apiv2pb.SignUpRequesNickname: request.Username,PasswordHash: string(passwordHash),}+ if !util.ResourceNameMatcher.MatchString(strings.ToLower(create.Username)) {+ return nil, status.Errorf(codes.InvalidArgument, "invalid username: %s", create.Username)+ }hostUserType := store.RoleHostexistedHostUsers, err := s.Store.ListUsers(ctx, &store.FindUser{