Login secure problem

This commit is contained in:
2026-01-28 13:46:16 +01:00
parent 4c7e24c478
commit ea9673c29b
2 changed files with 3 additions and 5 deletions
@@ -8,9 +8,6 @@
Layout = null;
ViewData["Title"] = "Bejelentkezés";
}
<!DOCTYPE html>
<html lang="hu">
<head>
@@ -188,6 +185,7 @@
if (result.success) {
window.location.href = `/Index`;
} else {
console.log(result);
$('#errorMessageContainer').text('Hibás felhasználónév vagy jelszó!').show();
// $('#Login2F1Btn, #Login2F2Btn')
// .prop('disabled', false)
@@ -55,8 +55,8 @@ namespace WorkFlowCheck.Web.Pages.Account
Response.Cookies.Append("AuthToken", token, new CookieOptions
{
HttpOnly = true,
Secure = true,
SameSite = SameSiteMode.Strict,
Secure = HttpContext.Request.IsHttps,
SameSite = SameSiteMode.Lax,
Expires = DateTimeOffset.UtcNow.AddDays(1)
});