Lurker News

Comments (199) 51 threads

Show all comments

Showing thread 20 of 51

brimtown2 replies#
Great idea. Just a heads up, the email validation in your index.js isn't functioning; it accepts any arbitrary string (or none at all).
frandroid1 reply#
It's not broken; it's an intentional form of user validation.
brimtown1 reply#
It's marked as an email field, and if you enter a random string, it replies "Message sent!". Not trying to be pedantic or critical, I just figured he'd want to know if his goal was actually to gather emails.
milesokeefe#
Thanks for letting me know, I always appreciate input like this.

Although in this case, not validating the emails client-side just means I have to validate emails after I receive them. Which is actually good in a way, I like seeing when people send stuff like "DROPTABLEuser" or "'SHOWPROCESSLIST'1=1", it's kind of a fun curiosity I suppose.

milesokeefe1 reply#
I didn't bother with any validation client-side, I have the email validation happen on the back end only.

In retrospect, I should have placed the inputs in an actual

brimtown#
No worries! As someone only a couple years older than you, I have to say, congrats on making the move out there. It seems like you've got a lot of passion and commitment; wish I was in the Berkeley to take you up on the coffee.