Skip to content

Commit 4720c48

Browse files
committed
#2315 remove not needed class
1 parent 1a15d18 commit 4720c48

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

Console/BExIS.Web.Shell/Controllers/AccountController.cs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -312,15 +312,10 @@ public async Task<ActionResult> Login(LoginViewModel model, string returnUrl)
312312
cookieJwt.Domain = Request.Url.Host; // Set the domain
313313
cookieJwt.Path = "/"; // Set the path
314314

315-
var csrfToken = AntiForgeryHelper.GetFormToken();
316-
HttpCookie cookieCsrf = new HttpCookie("XSRF-TOKEN", csrfToken);
317-
// Set additional properties if needed
318-
cookieCsrf.Expires = DateTime.Now.AddDays(1); // Expires in 1 day
319-
cookieCsrf.Domain = Request.Url.Host; // Set the domain
320-
cookieCsrf.Path = "/"; // Set the path
321-
322315
// Add the cookie to the response
323-
Response.Cookies.Add(cookieCsrf);
316+
Response.Cookies.Add(cookieJwt);
317+
318+
324319
}
325320

326321
var result =

0 commit comments

Comments
 (0)