EmailValidation icon indicating copy to clipboard operation
EmailValidation copied to clipboard

Is it possible to find out the reason why the mail is invalid?

Open reponemec opened this issue 2 years ago • 2 comments

Is it possible to find out the reason why the mail is invalid? Some friendly message... Thanks.

reponemec avatar Mar 24 '23 09:03 reponemec

I suppose so. How detailed do you need it to be?

jstedfast avatar Mar 24 '23 13:03 jstedfast

Supposing "invalid" address "john [email protected]". Then the validation error could be:

{
    "Code": "InvalidCharacter",
    "Description": "Invalid character {0} at {1}.",
    "Params": [" ", 4]
}

Translatable. Inspired a bit by IdentityError: https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.identity.identityerror?view=aspnetcore-7.0

reponemec avatar Mar 28 '23 10:03 reponemec

Added

jstedfast avatar May 12 '24 16:05 jstedfast