diff --git a/src/WorkFlowCheck.API/appsettings.json b/src/WorkFlowCheck.API/appsettings.json index 79a86ab..4f1b3b2 100644 --- a/src/WorkFlowCheck.API/appsettings.json +++ b/src/WorkFlowCheck.API/appsettings.json @@ -7,7 +7,7 @@ "SecretKey": "9aLxV2t7RpM8BfKqZwXy3GehYJDUNTCrHkVZ", "Issuer": "https://wfcapi.nuvolar.hu/", "Audience": "wfc-application", - "TokenLifetimeMinutes": 720 + "TokenLifetimeMinutes": 1440 }, "Logging": { "LogLevel": { diff --git a/src/WorkFlowCheck.BL/Services/CheckListService.cs b/src/WorkFlowCheck.BL/Services/CheckListService.cs index 49d7437..e75ffd3 100644 --- a/src/WorkFlowCheck.BL/Services/CheckListService.cs +++ b/src/WorkFlowCheck.BL/Services/CheckListService.cs @@ -379,7 +379,7 @@ namespace WorkFlowCheck.BL.Services if (checkListHeader != null) { checkListHeader.CheckStatus = CheckStatus.Closed; - checkListHeader.IsEditable = true; + checkListHeader.IsEditable = false; checkListHeader.AcceptUserId = closeCheckListHeaderCloseDTO.UserId; Log.Warning($"Ellenőrzési lap lezárva: Ellenőrzés:{closeCheckListHeaderCloseDTO.Id}, " + diff --git a/src/WorkFlowCheck.Web/Pages/Account/ChangePassword.cshtml.cs b/src/WorkFlowCheck.Web/Pages/Account/ChangePassword.cshtml.cs index 5df6757..2d6ec4e 100644 --- a/src/WorkFlowCheck.Web/Pages/Account/ChangePassword.cshtml.cs +++ b/src/WorkFlowCheck.Web/Pages/Account/ChangePassword.cshtml.cs @@ -85,7 +85,7 @@ namespace WorkFlowCheck.Web.Pages.Account HttpOnly = true, Secure = true, SameSite = SameSiteMode.Strict, - Expires = DateTimeOffset.UtcNow.AddMinutes(30) + Expires = DateTimeOffset.UtcNow.AddDays(1) }); return new JsonResult(new { success = true }); diff --git a/src/WorkFlowCheck.Web/Pages/Account/Login.cshtml.cs b/src/WorkFlowCheck.Web/Pages/Account/Login.cshtml.cs index 9cb16b4..5f12391 100644 --- a/src/WorkFlowCheck.Web/Pages/Account/Login.cshtml.cs +++ b/src/WorkFlowCheck.Web/Pages/Account/Login.cshtml.cs @@ -57,7 +57,7 @@ namespace WorkFlowCheck.Web.Pages.Account HttpOnly = true, Secure = true, SameSite = SameSiteMode.Strict, - Expires = DateTimeOffset.UtcNow.AddMinutes(30) + Expires = DateTimeOffset.UtcNow.AddDays(1) }); return new JsonResult(new { success = true });