Re: emailval.js accepts incomplete email addresses
By: echicken to Codefenix on Sat Aug 31 2024 09:05 pm
If you *really* want to check if an email address is valid, then there's a whole rabbit hole of standards and regex fun you can go down. I have to wonder why/if this is even necessary in the context of email validation. If the email address is fucked, then the user will not get validated. If they want to gain access, they'll need to supply a working address. Sort of a self-solving problem right?
No, not quite. I must not have made it very clear in my initial post. The reason why I would want to "pre-validate" an email address is because someone entered an incomplete one on my system (user@gmail), and it broke the script because the script (incorrectly) treated the entry as though it were a QWKmail address. This let the user skip validation and proceed to main, when it should have screened them out instead.
I don't think that's how that script works though. It doesn't "screen people out" (that provide an invalid email address).
The user is meant to validate or hit the bricks.
There is no 5th option to proceed unvaliated, otherwise I could agree with you about the script's intent.
Re: emailval.js accepts incomplete email addresses
By: Digital Man to Codefenix on Wed Sep 04 2024 10:05 pm
I don't think that's how that script works though. It doesn't "screen people out" (that provide an invalid email address).
The list of available options in the script's menu imply exactly that.
[S] Send validation code to <email address>
[V] Validate your account
[E] Edit/Update email address
[H] Hangup
If the sysop has the emailval module enabled, it gets called during logon. The user is meant to validate or hit the bricks.
There is no 5th option to proceed unvaliated, otherwise I could agree with you about the script's intent.
with you about the script's intent.
Yeah, I'm not familiar with (don't run) that script. I'll take a closer look at it.
it probably would be better to send a user a generated password and disconnect them.
Re: emailval.js accepts incomplete email addresses
By: MRO to Digital Man on Thu Sep 05 2024 09:19 pm
it probably would be better to send a user a generated password and disconnect them.
I mean, that's effectively the same thing as what the emailval module currently is doing now, except your approach forces the user to drop and re-connect. emailval keeps the the user on, which I think is preferable.
Sysop: | Taoron |
---|---|
Location: | Arizona, USA |
Users: | 5 |
Nodes: | 10 (0 / 10) |
Uptime: | 167:41:12 |
Calls: | 4 |
Files: | 33 |
D/L today: |
14 files (9,946K bytes) |
Messages: | 3,670 |