diff options
Diffstat (limited to 'radicale-proxy-ldap-auth-fn.js.patch')
-rw-r--r-- | radicale-proxy-ldap-auth-fn.js.patch | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/radicale-proxy-ldap-auth-fn.js.patch b/radicale-proxy-ldap-auth-fn.js.patch new file mode 100644 index 0000000..de1ff85 --- /dev/null +++ b/radicale-proxy-ldap-auth-fn.js.patch @@ -0,0 +1,67 @@ +--- Radicale-3.1.7/radicale/web/internal_data/fn.js.orig 2022-04-20 11:57:41.000000000 -0400 ++++ Radicale-3.1.7/radicale/web/internal_data/fn.js 2022-05-16 18:21:39.714987958 -0400 +@@ -119,7 +119,7 @@ + */ + function get_principal(user, password, callback) { + let request = new XMLHttpRequest(); +- request.open("PROPFIND", SERVER + ROOT_PATH, true, user, password); ++ request.open("PROPFIND", SERVER + ROOT_PATH, true); //, user, password); + request.onreadystatechange = function() { + if (request.readyState !== 4) { + return; +@@ -162,7 +162,7 @@ + */ + function get_collections(user, password, collection, callback) { + let request = new XMLHttpRequest(); +- request.open("PROPFIND", SERVER + collection.href, true, user, password); ++ request.open("PROPFIND", SERVER + collection.href, true); //, user, password); + request.setRequestHeader("depth", "1"); + request.onreadystatechange = function() { + if (request.readyState !== 4) { +@@ -288,7 +288,7 @@ + */ + function delete_collection(user, password, collection, callback) { + let request = new XMLHttpRequest(); +- request.open("DELETE", SERVER + collection.href, true, user, password); ++ request.open("DELETE", SERVER + collection.href, true); //, user, password); + request.onreadystatechange = function() { + if (request.readyState !== 4) { + return; +@@ -313,7 +313,7 @@ + */ + function create_edit_collection(user, password, collection, create, callback) { + let request = new XMLHttpRequest(); +- request.open(create ? "MKCOL" : "PROPPATCH", SERVER + collection.href, true, user, password); ++ request.open(create ? "MKCOL" : "PROPPATCH", SERVER + collection.href, true); //, user, password); + request.onreadystatechange = function() { + if (request.readyState !== 4) { + return; +@@ -502,7 +502,7 @@ + try { + read_form(); + let password = password_form.value; +- if (user) { ++ if (true) { + error = ""; + // setup logout + logout_view.classList.remove("hidden"); +@@ -560,6 +560,8 @@ + logout_user_form.textContent = ""; + } + ++ this.onlogin = onlogin; ++ + this.show = function() { + remove_logout(); + fill_form(); +@@ -1120,7 +1122,9 @@ + function main() { + // Hide startup loading message + document.getElementById("loadingscene").classList.add("hidden"); +- push_scene(new LoginScene(), false); ++ let nLS = new LoginScene(); ++ setTimeout(function(){nLS.onlogin();}, 200); ++ push_scene(nLS, false); + } + + window.addEventListener("load", main); |