Skip to content

Commit

Permalink
Infrastructure Preparation 49
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiizor committed Dec 11, 2023
1 parent b5b1728 commit 50979f3
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Taiizor.Starterkit" Version="1.1.4.2" />
<PackageReference Include="Taiizor.Starterkit" Version="1.1.4.3" />
</ItemGroup>

</Project>
12 changes: 12 additions & 0 deletions src/Taiizor.Starterkit/Extension/Theme.cs
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,18 @@ public string GetAntiforgeryCookieDomain()
return ThemeSettings.Config.Antiforgery.CookieDomain;
}

// Set the application cookie domain
public void SetApplicationCookieDomain(string flag)
{
ThemeSettings.Config.Application.CookieDomain = flag;
}

// Get the application cookie domain
public string GetApplicationCookieDomain()
{
return ThemeSettings.Config.Application.CookieDomain;
}

// Set the tempdata cookie domain
public void SetTempDataCookieDomain(string flag)
{
Expand Down
4 changes: 4 additions & 0 deletions src/Taiizor.Starterkit/Interface/ITheme.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,10 @@ public interface ITheme

string GetAntiforgeryCookieDomain();

void SetApplicationCookieDomain(string flag);

string GetApplicationCookieDomain();

void SetTempDataCookieDomain(string flag);

string GetTempDataCookieDomain();
Expand Down
2 changes: 1 addition & 1 deletion src/Taiizor.Starterkit/Taiizor.Starterkit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<PropertyGroup>
<ApplicationIcon>Resources\Taiizor.Starterkit.ico</ApplicationIcon>
<Version>1.1.4.3</Version>
<Version>1.1.4.4</Version>
<AssemblyVersion>$(Version)</AssemblyVersion>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Title>Taiizor.Starterkit</Title>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Taiizor.Starterkit" Version="1.1.4.2" />
<PackageReference Include="Taiizor.Starterkit" Version="1.1.4.3" />
</ItemGroup>

</Project>

0 comments on commit 50979f3

Please sign in to comment.