email and confirmed not working
See original GitHub issueVersions
- vee-validate: 2.1.0-beta2 through 2.1.0-beta5
- vue: 2.5.2
Describe the bug I have this code that works on version 2.0.9:
<div>
<label for="email" class="a-required">E-mail address</label>
<input type="text" id="email" name="email" maxlength="33" size="34" placeholder="yourname@domain.com" v-model="formstore.email" v-validate="'required|email'" :class="{'has-error': errors.has('email')}" />
<p v-if="errors.has('email')" class="error">{{errors.first('email')}}</p>
<div class="clear"></div>
<label for="email2" class="a-required">E-mail address confirm</label>
<input type="text" id="email2" name="email2" maxlength="33" size="34" placeholder="yourname@domain.com" v-validate="'confirmed:email'" :class="{'has-error': errors.has('email2')}" data-vv-as="email" />
<p v-if="errors.has('email2')" class="error">{{errors.first('email2')}}</p>
</div>
However, when entering peter@gmail.com on any of the fields it produces: The email field must be a valid email. Surprisingly the email peter@gmail.co passes validation.
Then when entering the same email in the email2 field it throws: The email confirmation does not match.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Why doesn't my email confirmation link work?
Confirmation links are automatically sent to the email address on your account and cannot be redirected or manually sent. If security and/or firewall...
Read more >Troubleshooting a Missing Confirmation Email
If you still aren't getting the confirmation emails reach out to Handshake support and let them know. We'll work with you to get...
Read more >I did not receive the verification email
The most common reasons that prevent you from receiving the verification email in your inbox and how to fix them.
Read more >'Google email verification' message - Google Account Help
You can simply disregard the verification email, and the account won't be verified. If you accidentally clicked the link to verify the account,...
Read more >How to troubleshoot a form or a confirmation email not delivered
Check that there is a valid sender's email address. If there isn't one in place, then the confirmation email will never be sent....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

peter@gmail.comis not a valid Gmail address, the minimum count for the id must be more than 6. We use validator.js library for email validation.I created a sandbox to test this:
https://codesandbox.io/s/4jlv1p6569
peter@gmail.com does not work