re-send registration token email.

This commit is contained in:
DESKTOP-T0O5CDB\DESK-555BD
2025-02-03 08:35:33 -07:00
parent 0555dcbc43
commit 08b5c9f25a

View File

@@ -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()