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 Validation incorrect

See original GitHub issue

Versions

  • vee-validate: 2.0.0-rc.26
  • vue: 2.5.9

Describe the bug Since our mail client isn’t SMTPUTF8-aware it can’t handle UTF-8 encoded email addresses. Vee Validate seems to accept UTF-8 in email validation rule (which is an SMTP Extension: RFC 6531). We need a way to configure that rule to don’t accept every UTF-8 character.

To Reproduce Steps to reproduce the behavior:

  1. Go to Vee Validate Documentation for email rule: https://baianat.github.io/vee-validate/guide/rules.html#email
  2. Enter invalid email address: föö@bar.de
  3. No validation error

Expected behavior Since the email address is invalid it should give a validation error

Demo Link https://baianat.github.io/vee-validate/guide/rules.html#email

Desktop (please complete the following information):

  • OS: Windows 7 Enterprise
  • Browser: Chrome 66.0.3359.181

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
logaretmcommented, Sep 9, 2018

@toadkicker Sorry I didn’t see your comment, but the gmail emails require more than 5 characters in the identifier to be valid so todd@gmail.com is actually invalid. We use validator.js for email validation and a couple of other validations.

2reactions
toadkickercommented, Jul 22, 2018
screen shot 2018-07-22 at 14 17 56 This should definitely work but it shows invalid. Happens in my own app as well.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Your E-Mail Validation Logic is Wrong - netmeister.org
Your E-Mail Validation Logic is Wrong ; 1. Email addresses can contain multiple '@'s. ; 2. Bang paths may be accepted. ; 3....
Read more >
How to Fix an Invalid Email Address: Best Guide 2022 [updated]
Here are the main reasons an email address will be invalid. ensuring the email validation of your list is key to your deliverability....
Read more >
6 mistakes you're probably making with email validation - Loqate
Mistake 1 - Making people enter their address twice · Mistake 2 - Not using inline validation · Mistake 3 - Being too...
Read more >
The 100% correct way to validate email addresses
There is no point in trying to work out if an email address is 'valid'. A user is far more likely to enter...
Read more >
How To Create A Custom Email Validation Error Message
A validation error message provides information about the validity of an email address. It can contain syntax, semantics, and system-related ...
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