before review

This commit is contained in:
boris committed 2026-04-28 02:08:11 +01:00
1 parent c6a830cb92
commit d9881bde01
40 files changed
+1560 -158

No files matched your search

@@ -458,11 +458,9 @@
<script>
(function () {
function getCookie(name) {
var value = "; " + document.cookie;
var parts = value.split("; " + name + "=");
if (parts.length === 2) {
return parts.pop().split(";").shift();
function getCsrfToken() {
if (typeof window.keywardenGetCsrfToken === "function") {
return window.keywardenGetCsrfToken();
}
return "";
}
@@ -485,7 +483,7 @@
if (!window.confirm("Regenerate the certificate for this key?")) {
return;
}
var csrf = getCookie("csrftoken");
var csrf = getCsrfToken();
fetch("/api/v1/keys/" + keyId + "/certificate", {
method: "POST",
credentials: "same-origin",