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