thecyberworld / TheCyberHUB

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.
http://www.thecyberhub.org/
MIT License
144 stars 164 forks source link

feat: poll | Add upload form #860

Closed Tamir198 closed 3 weeks ago

Tamir198 commented 3 months ago

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 :

image

Tamir198 commented 3 months ago

@ArkadiK94 Can you add code review ?