TIS2017 / Nobelisti

0 stars 0 forks source link

Issue #128 - Validation for registration form #135

Closed Radcho closed 6 years ago

Radcho commented 6 years ago

Ok.. takze vysvetlim v skratke preco to riesim na forme.

Najprv som to zacal riesit tak, ze som do toho pouzil Attendee entitu aby sa pouzili tie iste constraints, ktore su v databaze. Problem nastal vtedy ked sa clovek snazil prihlasit e-mailom ktory uz bol pouzity, kedze na tom bol unique constraint. Na to aby to islo, by potom nemohol byt namappovany email field a teda validacia podla entity by sa robila iba pre first a last name. Cize radsej som to spravil iba tak, ze som to pridal na form.

ZoltanOnody commented 6 years ago

A teda toto pridá validaciu aj na backend?

Radcho commented 6 years ago

Toto je validacia na backend, na frontende to nic nerobi. O to sa uz staraju tie field types.