Skip to content

Commit 448c958

Browse files
authored
Minor fix for removing the method "IsTrue"
IsTrue(...) was a private method for parsing a configuration setting
1 parent 2734692 commit 448c958

File tree

1 file changed

+1
-1
lines changed
  • src/AbpCompanyName.AbpProjectName.WebSpaAngular/App_Start

1 file changed

+1
-1
lines changed

src/AbpCompanyName.AbpProjectName.WebSpaAngular/App_Start/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public void Configuration(IAppBuilder app)
2424
LoginPath = new PathString("/Account/Login"),
2525
// evaluate for Persistent cookies (IsPermanent == true). Defaults to 14 days when not set.
2626
ExpireTimeSpan = new TimeSpan(int.Parse(ConfigurationManager.AppSettings["AuthSession.ExpireTimeInDays.WhenPersistet"] ?? "14"), 0, 0, 0),
27-
SlidingExpiration = IsTrue("AuthSession.SlidingExpirationEnabled"),
27+
SlidingExpiration = bool.Parse(ConfigurationManager.AppSettings["AuthSession.SlidingExpirationEnabled"] ?? bool.FalseString)
2828
});
2929

3030
app.UseExternalSignInCookie(DefaultAuthenticationTypes.ExternalCookie);

0 commit comments

Comments
 (0)