Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-10-02 02:55:35 +0400
committerThomas Müller <thomas.mueller@tmit.eu>2013-10-02 02:55:35 +0400
commit4cecede13d74cc26f92aba50d415ff31d277ade5 (patch)
treea1c5ee60b102d44b9c8e063fa08f59377731287b /lib/private/user.php
parent493e948146e3ab0b58f15adb533854d7edef1212 (diff)
code cleanup - remove special case for webdav in handleApacheAuth()
Diffstat (limited to 'lib/private/user.php')
-rw-r--r--lib/private/user.php19
1 files changed, 4 insertions, 15 deletions
diff --git a/lib/private/user.php b/lib/private/user.php
index a4ad3278142..90060cb33d8 100644
--- a/lib/private/user.php
+++ b/lib/private/user.php
@@ -237,12 +237,10 @@ class OC_User {
/**
* @brief Verify with Apache whether user is authenticated.
- * @note Currently supports only Shibboleth.
*
- * @param $isWebdav Is this request done using webdav.
- * @return true: authenticated - false: not authenticated
+ * @return boolean|null true: authenticated - false: not authenticated
*/
- public static function handleApacheAuth($isWebdav = false) {
+ public static function handleApacheAuth() {
foreach (self::$_usedBackends as $backend) {
if ($backend instanceof OCP\ApacheBackend) {
if ($backend->isSessionActive()) {
@@ -252,21 +250,12 @@ class OC_User {
self::setupBackends();
self::unsetMagicInCookie();
- if (self::loginWithApache($backend)) {
- if (! $isWebdav) {
- $_REQUEST['redirect_url'] = \OC_Request::requestUri();
- OC_Util::redirectToDefaultPage();
- return true;
- }
- else {
- return true;
- }
- }
+ return self::loginWithApache($backend);
}
}
}
- return false;
+ return null;
}