fixed wording.
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user