[API][CONF][!!!] Make the name of cookies configurable
[Packages/TYPO3.CMS.git] / typo3 / classes / class.ajaxlogin.php
index ec86bdc..1c32387 100644 (file)
@@ -78,7 +78,7 @@ class AjaxLogin {
                        && isset($loginFormData['uname'])
                        && isset($loginFormData['uident'])
                        && isset($loginFormData['chalvalue'])
-                       && ((string)$_COOKIE['be_typo_user'] !== (string)$GLOBALS['BE_USER']->id);
+                       && ((string)$_COOKIE[t3lib_beUserAuth::getCookieName()] !== (string)$GLOBALS['BE_USER']->id);
        }
 
        /**