Merge pull request #4 from Flight-Simulator-EFB/features/login

Update Form Authenticator
This commit is contained in:
Luke Else 2021-11-15 21:23:06 +00:00 committed by GitHub
commit d42626f166
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@ namespace EFB.Controllers.Form
{ {
public static bool ValidateEMail(string EMail){ public static bool ValidateEMail(string EMail){
if (EMail.Contains("@") && EMail.Contains(".") && !EMail.Contains(" ")) if (EMail != null && EMail.Contains("@") && EMail.Contains(".") && !EMail.Contains(" "))
{ {
if (EMail.Count(x => x == '@') == 1) if (EMail.Count(x => x == '@') == 1)
{ {