Email-Validation: length-validation not necessary because of default-email-format validation #187

Closed
lichtamberg opened this Issue Oct 2, 2010 · 1 comment

1 participant

@lichtamberg

I think that the email-length validation isnt necessary because the Authlogic::Regex.email-regex checks already for a correct email (with correct length requirements)?

Because if i submit an empty email address, there a 2 error messages: 1) length and 2) format...
I think it would be better to allow email_lengths to :max => 100 and no :min-definition...? So when passing an empty email it shows only "email_invalid" error message...

Or did I missunderstand something?

@lichtamberg

Added pull requrest

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment