Merge branch 'master' of linz:/srv/git/lantea
authorRobert Kaiser <kairo@kairo.at>
Mon, 18 Sep 2017 00:56:13 +0000 (02:56 +0200)
committerRobert Kaiser <kairo@kairo.at>
Mon, 18 Sep 2017 00:56:13 +0000 (02:56 +0200)
1  2 
js/ui.js

diff --combined js/ui.js
index 1ddf65a3d5b7c2fd2ebe3e3fe6547a4ae585030b,a419962fc47310238dd317d14ea4d5a4371fce42..d8953ad0df4b9a7815bd3a5db4bb64056f113db9
+++ b/js/ui.js
@@@ -171,7 -171,7 +171,7 @@@ function prepareLoginButton(aCallback) 
            }
          }
          else {
-           console.log("Backend issue fetching OAuth state.");
+           console.log("Backend error " + aStatus + " fetching OAuth state: " + aResult["message"]);
          }
          if (aCallback) { aCallback(); }
        },
@@@ -760,7 -760,6 +760,7 @@@ function fetchBackend(aEndpoint, aMetho
      }
    };
    XHR.open(aMethod, gBackendURL + aEndpoint, true);
 +  XHR.withCredentials = "true";
    //XHR.setRequestHeader("Accept", "application/json");
    try {
      XHR.send(aSendData); // Send actual form data.