Cleanup
authormario_matzulla <mario_matzulla@735d13b6-9817-0410-8766-e36946ffe9aa>
Sun, 27 Dec 2015 18:54:41 +0000 (18:54 +0000)
committermario_matzulla <mario_matzulla@735d13b6-9817-0410-8766-e36946ffe9aa>
Sun, 27 Dec 2015 18:54:41 +0000 (18:54 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/caldav/trunk@90386 735d13b6-9817-0410-8766-e36946ffe9aa

lib/Sabre/DAV/Auth/Backend/TYPO3.php

index 5785216..a2a8b4d 100755 (executable)
@@ -52,18 +52,13 @@ class Sabre_DAV_Auth_Backend_TYPO3 extends Sabre_DAV_Auth_Backend_AbstractBasic
      * @return bool|array
      */
     protected function validateUserPass($username, $password){
-               global $TYPO3_CONF_VARS;
-       $formfield_uname = 'user';                              // formfield with login-name
-               $formfield_uident = 'pass';                     // formfield with password
-               $formfield_chalvalue = 'challenge';             // formfield with a unique value which is used to encrypt the password and username
-               $formfield_status = 'logintype';
        $_GET['logintype'] = 'login';
                $_GET['user'] = $username;
                $_GET['pass'] = $password;
                $_GET['challenge'] = '';
-               $confArr = unserialize($TYPO3_CONF_VARS['EXT']['extConf']['caldav']);
+               $confArr = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['caldav']);
                $_GET['pid'] = $confArr['pids'];
-               $TYPO3_CONF_VARS['FE']['loginSecurityLevel']='normal';          
+               $GLOBALS['TYPO3_CONF_VARS']['FE']['loginSecurityLevel']='normal';               
                //require_once (PATH_tslib.'/class.tslib_eidtools.php');
 
                $feUserObj = \TYPO3\CMS\Frontend\Utility\EidUtility::initFeUser();