devrsi0n / chirpy

💬 A privacy-friendly and customizable Disqus (comment system) alternate. 注重隐私保护和定制化的评论系统。
https://chirpy.dev
GNU Affero General Public License v3.0
555 stars 32 forks source link

refactor: use zod for client form validation #555

Closed devrsi0n closed 6 months ago

devrsi0n commented 1 year ago

Currently, we're using zod for trpc input validation, at the same time, we're using custom logics for client side validation, the deviation between server & client causes maintenance and vulnerability issues. We should extract zod logic, and share it with client & server.