re-send registration token email.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user