Merge pull request #3810 from owncloud/improve_webdavauth
improve error handling of webdavauth
This commit is contained in:
commit
65de0a5831
|
@ -56,10 +56,10 @@ class OC_USER_WEBDAVAUTH extends OC_User_Backend {
|
||||||
}
|
}
|
||||||
$returncode= substr($headers[0], 9, 3);
|
$returncode= substr($headers[0], 9, 3);
|
||||||
|
|
||||||
if(($returncode=='401') or ($returncode=='403')) {
|
if(substr($returncode, 0, 1) === '2') {
|
||||||
return(false);
|
return $uid;
|
||||||
}else{
|
} else {
|
||||||
return($uid);
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue