From 7d8b7596ce928f00dc8f9ea47ef285bf0287d255 Mon Sep 17 00:00:00 2001 From: "DESKTOP-T0O5CDB\\DESK-555BD" Date: Mon, 3 Feb 2025 08:51:00 -0700 Subject: [PATCH] fixed wording. --- Logic/LoginLogic.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Logic/LoginLogic.cs b/Logic/LoginLogic.cs index 64f375b..22d2491 100644 --- a/Logic/LoginLogic.cs +++ b/Logic/LoginLogic.cs @@ -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() {