Welcome to TheCyberHUB, a community-driven platform for hackers, cybersecurity enthusiasts, and IT professionals. Our platform provides a variety of free resources, including Capture The Flag (CTF) challenges, courses, blogs, forums, and much more.
Right now, the Zod validation validates things in a kind of "hardcoded way," but since the maximum number of answers won't change often, I think it's okay. I can think of other solutions if we want to implement dynamic answer numbers.
Also, it`s not in the video but there is a check for the minimum question length :
Fix issue #841
This is the form (right now not connected to any backend) :
https://github.com/thecyberworld/TheCyberHUB/assets/34707669/1a0efe34-fae2-421c-b4dd-1f7a20705936
Right now, the Zod validation validates things in a kind of "hardcoded way," but since the maximum number of answers won't change often, I think it's okay. I can think of other solutions if we want to implement dynamic answer numbers.
Also, it`s not in the video but there is a check for the minimum question length :