Login secure problem
This commit is contained in:
@@ -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)
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user