docs: #272 bug fixes

This commit is contained in:
Hamid Reza Mohammadi 2022-01-13 12:09:29 +03:30
parent 3a5c02781e
commit 2805cfe436
5 changed files with 7 additions and 10 deletions

View File

@ -183,7 +183,6 @@ namespace GanjooRazor.Areas.User.Pages
return BadRequest(JsonConvert.DeserializeObject<string>(await response.Content.ReadAsStringAsync()));
}
bool status = JsonConvert.DeserializeObject<bool>(await response.Content.ReadAsStringAsync());
if(Request.Cookies["KeepHistory"] != null)
{
Response.Cookies.Delete("KeepHistory");
@ -192,7 +191,7 @@ namespace GanjooRazor.Areas.User.Pages
{
Expires = DateTime.Now.AddDays(365),
};
Response.Cookies.Append("KeepHistory", $"{status}", cookieOption);
Response.Cookies.Append("KeepHistory", $"{false}", cookieOption);
}
else
@ -225,7 +224,7 @@ namespace GanjooRazor.Areas.User.Pages
{
Expires = DateTime.Now.AddDays(365),
};
Response.Cookies.Append("KeepHistory", $"{status}", cookieOption);
Response.Cookies.Append("KeepHistory", $"{true}", cookieOption);
}
else

View File

@ -8,8 +8,8 @@
},
"AllowedHosts": "*",
"GoogleAnalyticsCode": "",
"APIRoot": "https://api.ganjoor.net",
"GlobalAPIRoot": "https://api.ganjoor.net",
"APIRoot": "http://localhost:3439",
"GlobalAPIRoot": "http://localhost:3439",
"SiteUrl": "http://localhost:33081",
"AggressiveCacheEnabled": "False",
"ReadOnlyMode": "False",

View File

@ -16,8 +16,7 @@ namespace RMuseum.Controllers
/// constructor
/// </summary>
/// <param name="optionsService"></param>
/// <param name="memoryCache"></param>
public RGenericOptionsController(IRGenericOptionsService optionsService, IMemoryCache memoryCache) : base(optionsService, memoryCache)
public RGenericOptionsController(IRGenericOptionsService optionsService) : base(optionsService)
{
}
}

View File

@ -21,7 +21,7 @@
</PackageReference>
<PackageReference Include="MySql.Data" Version="8.0.27" />
<PackageReference Include="NAudio" Version="2.0.1" />
<PackageReference Include="RSecurityBackend" Version="1.0.6" />
<PackageReference Include="RSecurityBackend" Version="1.0.7" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" />
<PackageReference Include="Swashbuckle.AspNetCore.Annotations" Version="6.2.3" />
<PackageReference Include="Swashbuckle.AspNetCore.Filters" Version="7.0.2" />

View File

@ -2004,12 +2004,11 @@
options
</summary>
</member>
<member name="M:RMuseum.Controllers.RGenericOptionsController.#ctor(RSecurityBackend.Services.IRGenericOptionsService,Microsoft.Extensions.Caching.Memory.IMemoryCache)">
<member name="M:RMuseum.Controllers.RGenericOptionsController.#ctor(RSecurityBackend.Services.IRGenericOptionsService)">
<summary>
constructor
</summary>
<param name="optionsService"></param>
<param name="memoryCache"></param>
</member>
<member name="T:RMuseum.Controllers.RImageController">
<summary>