36 $json = array(
'success' => TRUE);
39 $formProtection->setSessionTokenFromRegistry();
40 $formProtection->persistSessionToken();
43 $json = array(
'success' => FALSE);
45 $ajaxObj->addContent(
'login', $json);
46 $ajaxObj->setContentFormat(
'json');
55 return isset(
$GLOBALS[
'BE_USER']) &&
$GLOBALS[
'BE_USER'] instanceof \TYPO3\CMS\Core\Authentication\BackendUserAuthentication && isset(
$GLOBALS[
'BE_USER']->user[
'uid']);
64 $loginFormData =
$GLOBALS[
'BE_USER']->getLoginFormData();
65 return $loginFormData[
'status'] ===
'login' && !empty($loginFormData[
'uname']) && !empty($loginFormData[
'uident']);
77 if (isset(
$GLOBALS[
'BE_USER']->user[
'uid'])) {
78 $ajaxObj->addContent(
'logout', array(
'success' => FALSE));
80 $ajaxObj->addContent(
'logout', array(
'success' => TRUE));
82 $ajaxObj->setContentFormat(
'json');
93 $GLOBALS[
'BE_USER']->checkAuthentication();
94 $ajaxObj->addContent(
'refresh', array(
'success' => TRUE));
95 $ajaxObj->setContentFormat(
'json');
107 if (is_object(
$GLOBALS[
'BE_USER'])) {
108 $ajaxObj->setContentFormat(
'json');
109 if (@is_file((PATH_typo3conf .
'LOCK_BACKEND'))) {
110 $ajaxObj->addContent(
'login', array(
'will_time_out' => FALSE,
'locked' => TRUE));
111 $ajaxObj->setContentFormat(
'json');
112 } elseif (!isset(
$GLOBALS[
'BE_USER']->user[
'uid'])) {
113 $ajaxObj->addContent(
'login', array(
'timed_out' => TRUE));
115 $GLOBALS[
'BE_USER']->fetchUserSession(TRUE);
116 $ses_tstamp =
$GLOBALS[
'BE_USER']->user[
'ses_tstamp'];
117 $timeout =
$GLOBALS[
'BE_USER']->auth_timeout_field;
120 if (
$GLOBALS[
'EXEC_TIME'] >= $ses_tstamp + $timeout - 120) {
121 $ajaxObj->addContent(
'login', array(
'will_time_out' => TRUE));
123 $ajaxObj->addContent(
'login', array(
'will_time_out' => FALSE));
127 $ajaxObj->addContent(
'login', array(
'success' => FALSE,
'error' =>
'No BE_USER object'));
140 $_SESSION[
'login_challenge'] = md5(uniqid(
'', TRUE) . getmypid());
142 $parent->addContent(
'challenge', $_SESSION[
'login_challenge']);
143 $parent->setContentFormat(
'json');
getChallenge(array $parameters, \TYPO3\CMS\Core\Http\AjaxRequestHandler $parent)
isAuthorizedBackendSession()
logout(array $parameters, \TYPO3\CMS\Core\Http\AjaxRequestHandler $ajaxObj)
isTimedOut(array $parameters, \TYPO3\CMS\Core\Http\AjaxRequestHandler $ajaxObj)
refreshLogin(array $parameters, \TYPO3\CMS\Core\Http\AjaxRequestHandler $ajaxObj)
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
login(array $parameters, \TYPO3\CMS\Core\Http\AjaxRequestHandler $ajaxObj)
if($ajaxRegistryEntry !==NULL) $ajaxObj