fixed wording.

This commit is contained in:
DESKTOP-T0O5CDB\DESK-555BD
2025-02-03 08:51:00 -07:00
parent 08b5c9f25a
commit 7d8b7596ce

View File

@@ -323,9 +323,16 @@ namespace CarCareTracker.Logic
{
if (autoNotify) //re-send email
{
_mailHelper.NotifyUserForRegistration(emailAddress, existingToken.Body);
var notificationResult = _mailHelper.NotifyUserForRegistration(emailAddress, existingToken.Body);
if (notificationResult.Success)
{
return OperationResponse.Failed($"There is an existing token tied to {emailAddress}, a new email has been sent out");
} else
{
return notificationResult;
}
return OperationResponse.Failed("There is an existing token tied to this email address");
}
return OperationResponse.Failed($"There is an existing token tied to {emailAddress}");
}
var token = new Token()
{