From 08b5c9f25a172dc7dadc850b9dc94a30eef47a08 Mon Sep 17 00:00:00 2001 From: "DESKTOP-T0O5CDB\\DESK-555BD" Date: Mon, 3 Feb 2025 08:35:33 -0700 Subject: [PATCH] re-send registration token email. --- Logic/LoginLogic.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Logic/LoginLogic.cs b/Logic/LoginLogic.cs index 27f8e5e..64f375b 100644 --- a/Logic/LoginLogic.cs +++ b/Logic/LoginLogic.cs @@ -321,6 +321,10 @@ namespace CarCareTracker.Logic var existingToken = _tokenData.GetTokenRecordByEmailAddress(emailAddress); if (existingToken.Id != default) { + if (autoNotify) //re-send email + { + _mailHelper.NotifyUserForRegistration(emailAddress, existingToken.Body); + } return OperationResponse.Failed("There is an existing token tied to this email address"); } var token = new Token()