Hey, I don't know if it's the right place to post ...
# ideas-and-suggestions
f
Hey, I don't know if it's the right place to post this. When creating a new account, the email address is not validated. I know that validating an email is not an easy task but having at least some minimal checks would be appreciated > Edit: it seems that there are some kind of validation
foo@base
is considered valid while
foo@base.
is considered invalid
a
Hey @User, for now, you can handle the validation on both client-side and server-side, right before the data gets to Supabase so it's more predictable and not heavily-reliance on Supabase alone to handle it.
f
Hey @User thanks for the reply, this is what I'm doing right now, definitely not a show stopper
r
if you add this
type="email"
to your input tag, you already get inbuilt browser email validation.
in order for this to work, you should wrap the input tag in a form and have a button with submit. The validation will then work out of the box when the submit button is clicked
f
Hey @User, I'm building a mobile app not a web app unfortunately. Anyway, I'm using the RFC 5322 regex to validate the email, it's enough :). Thank you anyway
a
You shouldn't trust client-side validation (type='email') and other validations done on your own web app. Those functions can be manipulated and changed so that users can bypass client-side validation. That's why I recommended @User should do the validation on both client-side and server-side.
f
idd, never trust user input 😆
r
Good point. I agree
l
what about
regex