diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-10-02 00:55:35 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-10-02 00:55:35 +0200 |
commit | 4cecede13d74cc26f92aba50d415ff31d277ade5 (patch) | |
tree | a1c5ee60b102d44b9c8e063fa08f59377731287b /lib/private/user.php | |
parent | 493e948146e3ab0b58f15adb533854d7edef1212 (diff) | |
download | nextcloud-server-4cecede13d74cc26f92aba50d415ff31d277ade5.tar.gz nextcloud-server-4cecede13d74cc26f92aba50d415ff31d277ade5.zip |
code cleanup - remove special case for webdav in handleApacheAuth()
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; } |