Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

chaoticset (2105)

chaoticset
  (email not shown publicly)
http://chaoticset.perlmonk.org/
AOL IM: chaoticset23 (Add Buddy, Send Message)
Yahoo! ID: illuminatus_foil (Add User, Send Message)

JAPH. (That's right -- I'm not Really Inexperienced any more.)

I'm not just here, I'm here [perlmonks.org], and here [javajunkies.org] too, I ramble randomly in my philosophical blog [blogspot.com] and my other blog [blogspot.com]. Soon I'll come in a convenient six-pack.

Journal of chaoticset (2105)

Sunday June 30, 2002
12:46 PM

Authentication For Dummies (Er, Dummy)

[ #6079 ]
I threw a barebones email address verification in until I can find the one in the Mouse (I think I just did, chapter nine, 219-220) that's more inclusive. Mine is just /\w*@\w*.\w*/, which I realize is hideously short-sighted. I'm erring on the side of being too restrictive. (That is the idea with security-conscious programming, right? If you have a choice, err on the side of being too restrictive.)

User addition and authentication no longer looks insurmountably inscrutable. I may even be able to get that searchy thing working, too.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • /\w*@\w*.\w*/ is broken as it won't match a lot of valid emails and will match some garbage :)

    You should look at Email::Valid and/or use something like /^\S+\@\S+\.\S+$/ and check for valid emails by sending one containing some kind of auth code.

    • I knew it wouldn't match a lot of emails, but didn't realize until just now when you pointed it out that it would match invalid emails too. :\ Good thing this isn't production, I guess...

      I hadn't settled on anything yet; I want to grok the validation sub in the Mouse and check some other options before I decide on anything. (Whatever it is, I want to make sure it's fairly airtight. I'd like to impress Mike with this if it's at all possible.)

      --

      ------------------------------
      You are what you think.