1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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);
|