diff options
Diffstat (limited to 'lib/private/user.php')
-rw-r--r-- | lib/private/user.php | 19 |
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; } |