Hi, I have a sign in form with an email input field. I find its possible to provide illegal combinations that get past the default Weweb input filter.
I know its getting though as the Xano backend is detecting the issue and responding with an error
Combinations that seem to get through the default email input are:
aaa@com (missing the period) D...@home.com (too many periods before the @)
So it looks I need to add a further set of filtering to catch these additional combinations in my workflow.
Is there a best practice that guarantees to catch all illegal email combinations apart from building it from the ground up?
add a check in your submit workflow. You can use regular expressions again or any other way to parse the email and check its validity. You can trigger another workflow to show an error message if needed.
validate the email on the backend and return an error if invalid. Based on the response you can trigger a workflow to show a success/error message. This is the safest way to have a valid email in your backend logic.
what do you mean by several patterns?
the html pattern attribute is a regular expression so you can create expressions that check for multiple patterns.
for example (hello)|(world)