activitypods icon indicating copy to clipboard operation
activitypods copied to clipboard

A user could signup with an incorrect email

Open srosset81 opened this issue 3 years ago • 4 comments

Instead of "[email protected]", the email was "user@gmail. com" (with a space)

srosset81 avatar Nov 18 '22 16:11 srosset81

Another user could signup with an address ("1 rue de la castillere") !

srosset81 avatar Nov 18 '22 16:11 srosset81

Use per-input validation https://marmelab.com/react-admin/doc/3.19/CreateEdit.html#validation

srosset81 avatar Jun 14 '23 13:06 srosset81

Since your comment here was front-end related only, should I add backend-validation as well?

Laurin-W avatar Jun 23 '23 09:06 Laurin-W

At the moment we don't do validation on the backend. To do it correctly, we should probably use ShEx (see https://github.com/assemblee-virtuelle/semapps/issues/795). But for Pods this may be more difficult, as different applications may have different validation rules for the same types of data. I first wanted to include ShEx validation in the NLNet grant request, but I put this for later as I don't know if there is an easy solution.

So for now the idea would be to do all validation on the frontend. In the future, we could even use ShEx to validate data on the frontend.

srosset81 avatar Jun 23 '23 15:06 srosset81