Skip to content

Commit

Permalink
chore: compliance order
Browse files Browse the repository at this point in the history
  • Loading branch information
ychung-mot committed Nov 18, 2024
1 parent 2ddaa06 commit 2682d95
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions server/StrDss.Service/DelistingService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1105,6 +1105,12 @@ private async Task ProcessComplianceOrderListings(ComplianceOrderDto[] listings,
var commentError = false;
var cc = Environment.GetEnvironmentVariable("STR_CEU_EMAIL");

if (!Regex.IsMatch(_currentUser.EmailAddress, emailRegex.Regex))
{
errors.AddItem("email", $"Your email address ({_currentUser.EmailAddress}) is invalid");
return;
}

foreach (var listing in listings)
{
var rentalListing = await _listingRepo.GetRentalListing(listing.RentalListingId, false);
Expand Down

0 comments on commit 2682d95

Please sign in to comment.