diff --git a/Controllers/FormAuthenticator/FormAuthenticator.cs b/Controllers/FormAuthenticator/FormAuthenticator.cs new file mode 100644 index 0000000..b7bef3c --- /dev/null +++ b/Controllers/FormAuthenticator/FormAuthenticator.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace EFB.Controllers.FormAuthenticator +{ + public static class FormAuthenticator + { + + public static bool ValidateEMail(string EMail){ + if (EMail.Contains("@") && EMail.Contains(".") && !EMail.Contains(" ")) + { + if (EMail.Count(x => x == '@') == 1) + { + return true; + } + } + return false; + } + + + } +} \ No newline at end of file