Skip to content

Commit 5dc6d99

Browse files
committed
chore: email validation
1 parent b58de1f commit 5dc6d99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/StrDss.Common/CommonUtils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public static bool IsValidEmailAddress(string email)
8787

8888
if (!valid) return false;
8989

90-
if (email.StartsWith(".") || email.EndsWith(".") || email.Contains(".@") || email.Contains("@.")) return false;
90+
if (email.StartsWith(".") || email.EndsWith(".") || email.Contains(".@") || email.Contains("@.") || email.Contains("..")) return false;
9191

9292
return true;
9393
}

0 commit comments

Comments
 (0)