perf(web): remove js cookie management
This commit is contained in:
parent
e81ee683b7
commit
ef373db8d5
@ -25,7 +25,6 @@
|
||||
<link rel="stylesheet" href="/css/general.css">
|
||||
<link rel="stylesheet" href="/css/auth.css">
|
||||
<script src="/js/jquery-3.6.0.min.js"></script>
|
||||
<script src="/js/jquery.cookie.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
|
||||
@ -11,7 +11,6 @@ $("#auth").on("submit", function submit(e) {
|
||||
dataType: "json",
|
||||
success: function (resp) {
|
||||
if (resp.status) {
|
||||
$.cookie("token", resp.token, {expires: 7, path: '/'});
|
||||
input_password.removeClass("is-invalid");
|
||||
input_password.addClass("is-valid");
|
||||
$(".btn-secondary").css("display", "block");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user