Skip to content

Commit

Permalink
fixed wording.
Browse files Browse the repository at this point in the history
  • Loading branch information
hargata committed Feb 3, 2025
1 parent 08b5c9f commit 7d8b759
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Logic/LoginLogic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,16 @@ public OperationResponse GenerateUserToken(string emailAddress, bool autoNotify)
{
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()
{
Expand Down

0 comments on commit 7d8b759

Please sign in to comment.