aboutsummaryrefslogtreecommitdiff
path: root/radicale_web/web/infcloud
diff options
context:
space:
mode:
authorUnrud <unrud@openaliasbox.org>2017-03-17 14:48:02 +0100
committerUnrud <unrud@openaliasbox.org>2017-03-17 14:48:02 +0100
commitcc9928bfe5ef0b4ebc0ba671fc0b1660654057d1 (patch)
tree7fab3b9188f7863d0cabf78691343bcba4c8ed85 /radicale_web/web/infcloud
parentDon't use :scope pseudo-class in queries (diff)
downloadradicaleinfcloud-cc9928bfe5ef0b4ebc0ba671fc0b1660654057d1.tar.gz
radicaleinfcloud-cc9928bfe5ef0b4ebc0ba671fc0b1660654057d1.tar.bz2
radicaleinfcloud-cc9928bfe5ef0b4ebc0ba671fc0b1660654057d1.zip
InfCloud: Allow empty passwords
Diffstat (limited to 'radicale_web/web/infcloud')
-rw-r--r--radicale_web/web/infcloud/main.js4
-rw-r--r--radicale_web/web/infcloud/webdav_protocol.js40
2 files changed, 22 insertions, 22 deletions
diff --git a/radicale_web/web/infcloud/main.js b/radicale_web/web/infcloud/main.js
index 23ebfab..6a9f248 100644
--- a/radicale_web/web/infcloud/main.js
+++ b/radicale_web/web/infcloud/main.js
@@ -788,7 +788,7 @@ function loadConfig()
// check username and password against the server and create config from globalNetworkCheckSettings
if(typeof globalNetworkCheckSettings!='undefined' && globalNetworkCheckSettings!=null)
{
- if(globalLoginUsername=='' || globalLoginPassword=='')
+ if(globalLoginUsername=='')
{
$('#LoginPage').fadeTo(500, 1, function(){if(typeof globalDemoMode=='undefined') $('[data-type="system_username"]').focus()});
$('#LoginLoader').fadeOut(1200);
@@ -824,7 +824,7 @@ function loadConfig()
// load the configuration XML(s) from the network
if(typeof globalNetworkAccountSettings!='undefined' && globalNetworkAccountSettings!=null)
{
- if(globalLoginUsername=='' || globalLoginPassword=='')
+ if(globalLoginUsername=='')
{
$('#LoginPage').fadeTo(500, 1, function(){if(typeof globalDemoMode=='undefined') $('[data-type="system_username"]').focus()});
$('#LoginLoader').fadeOut(1200);
diff --git a/radicale_web/web/infcloud/webdav_protocol.js b/radicale_web/web/infcloud/webdav_protocol.js
index e2cd07d..a6df7c7 100644
--- a/radicale_web/web/infcloud/webdav_protocol.js
+++ b/radicale_web/web/infcloud/webdav_protocol.js
@@ -105,7 +105,7 @@ function netCheckAndCreateConfiguration(configurationURL)
},
timeout: configurationURL.timeOut,
beforeSend: function(req){
- if(globalSettings.usejqueryauth.value!=true && globalLoginUsername!='' && globalLoginPassword!='')
+ if(globalSettings.usejqueryauth.value!=true && globalLoginUsername!='')
req.setRequestHeader('Authorization', basicAuth(globalLoginUsername,globalLoginPassword));
req.setRequestHeader('X-client', globalXClientHeader);
req.setRequestHeader('Depth', '0');
@@ -193,7 +193,7 @@ function netLoadConfiguration(configurationURL)
},
timeout: configurationURL.timeOut,
beforeSend: function(req) {
- if(globalSettings.usejqueryauth.value!=true && globalLoginUsername!='' && globalLoginPassword!='')
+ if(globalSettings.usejqueryauth.value!=true && globalLoginUsername!='')
req.setRequestHeader('Authorization', basicAuth(globalLoginUsername,globalLoginPassword));
req.setRequestHeader('X-client', globalXClientHeader);
},
@@ -380,7 +380,7 @@ function netSaveProperty(inputCollection, hrefProperty, inputProperty, inputValu
},
timeout: inputCollection.timeOut,
beforeSend: function(req){
- if(globalSettings.usejqueryauth.value!=true && inputCollection.userAuth.userName!='' && inputCollection.userAuth.userPassword!='')
+ if(globalSettings.usejqueryauth.value!=true && inputCollection.userAuth.userName!='')
req.setRequestHeader('Authorization', basicAuth(inputCollection.userAuth.userName, inputCollection.userAuth.userPassword));
req.setRequestHeader('X-client', globalXClientHeader);
@@ -658,7 +658,7 @@ function DAVresourceDelegation(inputResource, index, lastIndex)
timeout: inputResource.timeOut,
beforeSend: function(req)
{
- if(globalSettings.usejqueryauth.value!=true && inputResource.userAuth.userName!='' && inputResource.userAuth.userPassword!='')
+ if(globalSettings.usejqueryauth.value!=true && inputResource.userAuth.userName!='')
req.setRequestHeader('Authorization', basicAuth(inputResource.userAuth.userName, inputResource.userAuth.userPassword));
req.setRequestHeader('X-client', globalXClientHeader);
@@ -1074,7 +1074,7 @@ function netFindResource(inputResource, inputResourceIndex, forceLoad, indexR, l
},
timeout: inputResource.timeOut,
beforeSend: function(req) {
- if(globalSettings.usejqueryauth.value!=true && inputResource.userAuth.userName!='' && inputResource.userAuth.userPassword!='')
+ if(globalSettings.usejqueryauth.value!=true && inputResource.userAuth.userName!='')
req.setRequestHeader('Authorization', basicAuth(inputResource.userAuth.userName,inputResource.userAuth.userPassword));
req.setRequestHeader('X-client', globalXClientHeader);
@@ -1840,7 +1840,7 @@ function netLoadResource(inputResource, inputHref, hrefMode, inputResourceIndex,
},
timeout: inputResource.timeOut,
beforeSend: function(req){
- if(globalSettings.usejqueryauth.value!=true && inputResource.userAuth.userName!='' && inputResource.userAuth.userPassword!='')
+ if(globalSettings.usejqueryauth.value!=true && inputResource.userAuth.userName!='')
req.setRequestHeader('Authorization', basicAuth(inputResource.userAuth.userName, inputResource.userAuth.userPassword));
req.setRequestHeader('X-client', globalXClientHeader);
@@ -1925,7 +1925,7 @@ function netSaveSettings(inputResource, inputSettings, isFormSave, collectionLoa
},
timeout: inputResource.timeOut,
beforeSend: function(req){
- if(globalSettings.usejqueryauth.value!=true && inputResource.userAuth.userName!='' && inputResource.userAuth.userPassword!='')
+ if(globalSettings.usejqueryauth.value!=true && inputResource.userAuth.userName!='')
req.setRequestHeader('Authorization', basicAuth(inputResource.userAuth.userName, inputResource.userAuth.userPassword));
req.setRequestHeader('X-client', globalXClientHeader);
@@ -2063,7 +2063,7 @@ function deleteVcalendarFromCollection(inputUID,inputForm, putMode)
timeout: resourceSettings.timeOut,
beforeSend: function(req)
{
- if(globalSettings.usejqueryauth.value!=true && resourceSettings.userAuth.userName!='' && resourceSettings.userAuth.userPassword!='')
+ if(globalSettings.usejqueryauth.value!=true && resourceSettings.userAuth.userName!='')
req.setRequestHeader('Authorization', basicAuth(resourceSettings.userAuth.userName, resourceSettings.userAuth.userPassword));
req.setRequestHeader('X-client', globalXClientHeader);
@@ -2200,7 +2200,7 @@ function moveVcalendarToCollection(accountUID, inputUID, inputEtag, inputVcalend
timeout: resourceSettings.timeOut,
beforeSend: function(req)
{
- if(globalSettings.usejqueryauth.value!=true && resourceSettings.userAuth.userName!='' && resourceSettings.userAuth.userPassword!='')
+ if(globalSettings.usejqueryauth.value!=true && resourceSettings.userAuth.userName!='')
req.setRequestHeader('Authorization', basicAuth(resourceSettings.userAuth.userName, resourceSettings.userAuth.userPassword));
req.setRequestHeader('X-client', globalXClientHeader);
@@ -2365,7 +2365,7 @@ function putVcalendarToCollection(accountUID, inputUID, inputEtag, inputVcalenda
beforeSend: function(req)
{
req.setRequestHeader('Prefer', 'return=representation');
- if(globalSettings.usejqueryauth.value!=true && resourceSettings.userAuth.userName!='' && resourceSettings.userAuth.userPassword!='')
+ if(globalSettings.usejqueryauth.value!=true && resourceSettings.userAuth.userName!='')
req.setRequestHeader('Authorization', basicAuth(resourceSettings.userAuth.userName, resourceSettings.userAuth.userPassword));
req.setRequestHeader('X-client', globalXClientHeader);
@@ -3018,7 +3018,7 @@ function CalDAVnetLoadCollection(inputCollection, forceLoad, allSyncMode, recurs
},
timeout: inputCollection.timeOut,
beforeSend: function(req){
- if(globalSettings.usejqueryauth.value!=true && inputCollection.userAuth.userName!='' && inputCollection.userAuth.userPassword!='')
+ if(globalSettings.usejqueryauth.value!=true && inputCollection.userAuth.userName!='')
req.setRequestHeader('Authorization', basicAuth(inputCollection.userAuth.userName, inputCollection.userAuth.userPassword));
req.setRequestHeader('X-client', globalXClientHeader);
@@ -3305,7 +3305,7 @@ function netLoadCalendar(inputCollection, vcalendarList, syncReportSupport, rem
},
timeout: inputCollection.timeOut,
beforeSend: function(req){
- if(globalSettings.usejqueryauth.value!=true && inputCollection.userAuth.userName!='' && inputCollection.userAuth.userPassword!='')
+ if(globalSettings.usejqueryauth.value!=true && inputCollection.userAuth.userName!='')
req.setRequestHeader('Authorization', basicAuth(inputCollection.userAuth.userName, inputCollection.userAuth.userPassword));
req.setRequestHeader('X-client', globalXClientHeader);
@@ -3512,7 +3512,7 @@ function netLoadCalendarSubscription(inputResource, inputCollection, recursiveIt
crossDomain: false,
timeout: 30000,
beforeSend: function(req) {
- if(globalSettings.usejqueryauth.value!=true && inputResource.userAuth.userName!='' && inputResource.userAuth.userPassword!='')
+ if(globalSettings.usejqueryauth.value!=true && inputResource.userAuth.userName!='')
req.setRequestHeader('Authorization', basicAuth(inputResource.userAuth.userName, inputResource.userAuth.userPassword));
},
username: (globalSettings.usejqueryauth.value==true ? inputResource.userAuth.userName : null),
@@ -3686,7 +3686,7 @@ function unlockCollection(inputContactObj)
},
timeout: resourceSettings.timeOut,
beforeSend: function(req) {
- if(globalSettings.usejqueryauth.value!=true && resourceSettings.userAuth.userName!='' && resourceSettings.userAuth.userPassword!='')
+ if(globalSettings.usejqueryauth.value!=true && resourceSettings.userAuth.userName!='')
req.setRequestHeader('Authorization', basicAuth(resourceSettings.userAuth.userName,resourceSettings.userAuth.userPassword));
req.setRequestHeader('X-client', globalXClientHeader);
// req.setRequestHeader('Depth', '0');
@@ -3934,7 +3934,7 @@ function lockAndPerformToCollection(inputContactObj, inputFilterUID, inputPerfor
timeout: resourceSettings.timeOut,
beforeSend: function(req)
{
- if(globalSettings.usejqueryauth.value!=true && resourceSettings.userAuth.userName!='' && resourceSettings.userAuth.userPassword!='')
+ if(globalSettings.usejqueryauth.value!=true && resourceSettings.userAuth.userName!='')
req.setRequestHeader('Authorization', basicAuth(resourceSettings.userAuth.userName,resourceSettings.userAuth.userPassword));
req.setRequestHeader('X-client', globalXClientHeader);
req.setRequestHeader('Depth', '0');
@@ -4127,7 +4127,7 @@ function putVcardToCollection(inputContactObjArr, inputFilterUID, recursiveMode,
beforeSend: function(req)
{
req.setRequestHeader('Prefer', 'return=representation');
- if(globalSettings.usejqueryauth.value!=true && resourceSettings.userAuth.userName!='' && resourceSettings.userAuth.userPassword!='')
+ if(globalSettings.usejqueryauth.value!=true && resourceSettings.userAuth.userName!='')
req.setRequestHeader('Authorization', basicAuth(resourceSettings.userAuth.userName,resourceSettings.userAuth.userPassword));
req.setRequestHeader('X-client', globalXClientHeader);
if(lockToken!=null && inputContactObj.withoutLockTocken!=true)
@@ -4304,7 +4304,7 @@ function moveVcardToCollection(inputContactObj, inputFilterUID)
timeout: resourceSettings.timeOut,
beforeSend: function(req)
{
- if(globalSettings.usejqueryauth.value!=true && resourceSettings.userAuth.userName!='' && resourceSettings.userAuth.userPassword!='')
+ if(globalSettings.usejqueryauth.value!=true && resourceSettings.userAuth.userName!='')
req.setRequestHeader('Authorization', basicAuth(resourceSettings.userAuth.userName,resourceSettings.userAuth.userPassword));
req.setRequestHeader('X-client', globalXClientHeader);
if(lockToken!=null)
@@ -4400,7 +4400,7 @@ function deleteVcardFromCollection(inputContactObj, inputFilterUID, recursiveMod
},
timeout: resourceSettings.timeOut,
beforeSend: function(req) {
- if(globalSettings.usejqueryauth.value!=true && resourceSettings.userAuth.userName!='' && resourceSettings.userAuth.userPassword!='')
+ if(globalSettings.usejqueryauth.value!=true && resourceSettings.userAuth.userName!='')
req.setRequestHeader('Authorization', basicAuth(resourceSettings.userAuth.userName,resourceSettings.userAuth.userPassword));
req.setRequestHeader('X-client', globalXClientHeader);
if(lockToken!=null)
@@ -4692,7 +4692,7 @@ function CardDAVnetLoadCollection(inputCollection, forceLoad, forceLoadNextConta
},
timeout: inputCollection.timeOut,
beforeSend: function(req) {
- if(globalSettings.usejqueryauth.value!=true && inputCollection.userAuth.userName!='' && inputCollection.userAuth.userPassword!='')
+ if(globalSettings.usejqueryauth.value!=true && inputCollection.userAuth.userName!='')
req.setRequestHeader('Authorization', basicAuth(inputCollection.userAuth.userName,inputCollection.userAuth.userPassword));
req.setRequestHeader('X-client', globalXClientHeader);
req.setRequestHeader('Depth', '1');
@@ -4894,7 +4894,7 @@ function netLoadAddressbook(inputCollection, vcardList, syncReportSupport, force
},
timeout: inputCollection.timeOut,
beforeSend: function(req) {
- if(globalSettings.usejqueryauth.value!=true && inputCollection.userAuth.userName!='' && inputCollection.userAuth.userPassword!='')
+ if(globalSettings.usejqueryauth.value!=true && inputCollection.userAuth.userName!='')
req.setRequestHeader('Authorization', basicAuth(inputCollection.userAuth.userName,inputCollection.userAuth.userPassword));
req.setRequestHeader('X-client', globalXClientHeader);
req.setRequestHeader('Depth', '0');
bgstack15