question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

email and confirmed not working

See original GitHub issue

Versions

  • 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:closed
  • Created 5 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
logaretmcommented, Jul 16, 2018

peter@gmail.com is not a valid Gmail address, the minimum count for the id must be more than 6. We use validator.js library for email validation.

1reaction
echodromecommented, Jul 16, 2018

I created a sandbox to test this:

https://codesandbox.io/s/4jlv1p6569

peter@gmail.com does not work

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found