One of my biggest gripes with CB is that there is no email verification, only password verification. This creates an obvious problem when a user fat-fingers the wrong email address upon registration. They will sit, expecting an email that never arrives. I see lots of signups with bad emails (e.g. [email]xxxxx@gnail.com[/email]).
The simple solution would be to force users to enter their email twice and verify that the entries match. I have seen elsewhere on these boards how to implement the code that verifies matching passwords and it seems logical that this same code could be used to verify email address. However, I also notice that when you're configuring the CB registration plugin to work with a given form, there is "Email Field", "Password Field", and "Verify Password Field". (Obviously there is no "Verify Email Field" because it doesn't exist in CB...)
So, the question is, would it be difficult to add 'verify email' functionality on a ChronoForm? I don't want to store the value anywhere; I just want to verify that the email address is correct by forcing the user to enter it twice and comparing those values before they submit. Does it matter that this functionality is missing in CB?
The simple solution would be to force users to enter their email twice and verify that the entries match. I have seen elsewhere on these boards how to implement the code that verifies matching passwords and it seems logical that this same code could be used to verify email address. However, I also notice that when you're configuring the CB registration plugin to work with a given form, there is "Email Field", "Password Field", and "Verify Password Field". (Obviously there is no "Verify Email Field" because it doesn't exist in CB...)
So, the question is, would it be difficult to add 'verify email' functionality on a ChronoForm? I don't want to store the value anywhere; I just want to verify that the email address is correct by forcing the user to enter it twice and comparing those values before they submit. Does it matter that this functionality is missing in CB?
This should be pretty easily done using the serverside validation code. Add an additional input field for the email address, and use something like this in the serverside validation code: (here using field names 'email' and 'email2', adjust to suite your form)
Use one of the fields with the CB registration plugin, and simply ignore the second one beyond the serverside validation.
/Fredrik
if (JRequest::getString('email') != JRequest::getString('email2')) {
return "Unable to verify your email address. Please double-check your entry."
}
Use one of the fields with the CB registration plugin, and simply ignore the second one beyond the serverside validation.
/Fredrik
This topic is locked and no more replies can be posted.