Skip to content

Commit 9ec39a3

Browse files
committed
console log validator
1 parent 622e0a7 commit 9ec39a3

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/authorization/EventTriangleAPI.Authorization.Domain/Entities/Validation/UserEntityValidator.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,13 @@ public UserEntityValidator()
1313

1414
private bool ValidateEmail(string email)
1515
{
16-
if (email == null) return false;
16+
if (email == null)
17+
{
18+
return false;
19+
}
20+
21+
Console.WriteLine($"UserEntityValidator -> ValidateEmail -> Received: {email}.");
1722

1823
return Regex.IsMatch(email, @"^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$");
1924
}
20-
}
25+
}

0 commit comments

Comments
 (0)