EmailValidation
EmailValidation copied to clipboard
Is it possible to find out the reason why the mail is invalid?
Is it possible to find out the reason why the mail is invalid? Some friendly message... Thanks.
I suppose so. How detailed do you need it to be?
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
Added