Skip to content

Commit

Permalink
Merge pull request #1085 from ITfoxtec/test
Browse files Browse the repository at this point in the history
Test
  • Loading branch information
Revsgaard authored Dec 13, 2024
2 parents 1634c22 + 478c777 commit fa77a9b
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 20 deletions.
2 changes: 1 addition & 1 deletion src/FoxIDs.Control/FoxIDs.Control.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<Version>1.14.5</Version>
<Version>1.14.6</Version>
<RootNamespace>FoxIDs</RootNamespace>
<Authors>Anders Revsgaard</Authors>
<Company>ITfoxtec</Company>
Expand Down
1 change: 0 additions & 1 deletion src/FoxIDs.Control/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"AddressLine1": "xxx",
"PostalCode": "xxx",
"City": "xxx",
"StateRegion": "xxx",
"Country": "xxx"
},
"Options": {
Expand Down
2 changes: 1 addition & 1 deletion src/FoxIDs.ControlClient/FoxIDs.ControlClient.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<Version>1.14.5</Version>
<Version>1.14.6</Version>
<RootNamespace>FoxIDs.Client</RootNamespace>
<Authors>Anders Revsgaard</Authors>
<Company>ITfoxtec</Company>
Expand Down
2 changes: 1 addition & 1 deletion src/FoxIDs.ControlShared/FoxIDs.ControlShared.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<Version>1.14.5</Version>
<Version>1.14.6</Version>
<RootNamespace>FoxIDs</RootNamespace>
<Authors>Anders Revsgaard</Authors>
<Company>ITfoxtec</Company>
Expand Down
2 changes: 1 addition & 1 deletion src/FoxIDs.Shared/FoxIDs.Shared.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<Version>1.14.5</Version>
<Version>1.14.6</Version>
<RootNamespace>FoxIDs</RootNamespace>
<Authors>Anders Revsgaard</Authors>
<Company>ITfoxtec</Company>
Expand Down
13 changes: 2 additions & 11 deletions src/FoxIDs.Shared/Logic/SendEmailLogic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
using System.Net;
using System.Net.Mime;
using System.Threading.Tasks;
using System.Web;

namespace FoxIDs.Logic
{
Expand Down Expand Up @@ -113,7 +112,7 @@ table td {{
</tbody>
</table>
</body>
</html>", emailContent.ParentCulture, BodyHtmlEncode(emailContent.Body), BodyHtmlEncode(GetInfoHtml(emailContent.Info)), emailContent.Address);
</html>", emailContent.ParentCulture, emailContent.Body, GetInfoHtml(emailContent.Info), emailContent.Address);
return bodyHtml;
}

Expand All @@ -133,18 +132,10 @@ private string GetInfoHtml(string info)
{0}
</div>
</td>
</tr>", info);
</tr>", infoWithLinks);
return infoHtml;
}

private string BodyHtmlEncode(string body)
{
//body = HttpUtility.HtmlEncode(body);
//body = body.Replace("&lt;", "<");
//body = body.Replace("&gt;", ">");
return body;
}

private async Task SendEmailWithSendgridAsync(SendEmail emailSettings, MailboxAddress toEmail, string subject, string body)
{
Debug.WriteLine($"HTML: '{body}'");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13989,7 +13989,7 @@
},
{
"culture": "en",
"value": "{0}Reset password",
"value": "{0}Reset Password",
"edit_level": 100
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/FoxIDs.SharedBase/FoxIDs.SharedBase.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<Version>1.14.5</Version>
<Version>1.14.6</Version>
<RootNamespace>FoxIDs</RootNamespace>
<Authors>Anders Revsgaard</Authors>
<Company>ITfoxtec</Company>
Expand Down
2 changes: 1 addition & 1 deletion src/FoxIDs/FoxIDs.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<Version>1.14.5</Version>
<Version>1.14.6</Version>
<RootNamespace>FoxIDs</RootNamespace>
<Authors>Anders Revsgaard</Authors>
<Company>ITfoxtec</Company>
Expand Down
1 change: 0 additions & 1 deletion src/FoxIDs/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"AddressLine1": "xxx",
"PostalCode": "xxx",
"City": "xxx",
"StateRegion": "xxx",
"Country": "xxx"
},
"Options": {
Expand Down

0 comments on commit fa77a9b

Please sign in to comment.