EFB/Controllers/FormAuthenticator/FormAuthenticator.cs
lukejelse04 b30ff5ad14 Added Form Authenticator
Includes the methods needed to verify the user inputs and to validate that they are correct.
2021-10-03 22:35:59 +01:00

24 lines
536 B
C#

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;
}
}
}