TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Backend\AjaxLoginHandler Class Reference
Inheritance diagram for TYPO3\CMS\Backend\AjaxLoginHandler:
AjaxLogin

Public Member Functions

 login (array $parameters, \TYPO3\CMS\Core\Http\AjaxRequestHandler $ajaxObj)
 
 logout (array $parameters, \TYPO3\CMS\Core\Http\AjaxRequestHandler $ajaxObj)
 
 refreshLogin (array $parameters, \TYPO3\CMS\Core\Http\AjaxRequestHandler $ajaxObj)
 
 isTimedOut (array $parameters, \TYPO3\CMS\Core\Http\AjaxRequestHandler $ajaxObj)
 
 getChallenge (array $parameters, \TYPO3\CMS\Core\Http\AjaxRequestHandler $parent)
 

Protected Member Functions

 isAuthorizedBackendSession ()
 
 hasLoginBeenProcessed ()
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! This is the ajax handler for backend login after timeout.

Author
Christoph Koehler chris.nosp@m.toph.nosp@m.@webe.nosp@m.mpow.nosp@m.eredc.nosp@m.hurc.nosp@m.h.org

Definition at line 21 of file AjaxLoginHandler.php.

Member Function Documentation

◆ getChallenge()

TYPO3\CMS\Backend\AjaxLoginHandler::getChallenge ( array  $parameters,
\TYPO3\CMS\Core\Http\AjaxRequestHandler  $parent 
)

Gets a MD5 challenge.

Parameters
array$parametersParameters (not used)
\TYPO3\CMS\Core\Http\AjaxRequestHandler$parentThe calling parent AJAX object
Returns
void

Definition at line 138 of file AjaxLoginHandler.php.

◆ hasLoginBeenProcessed()

TYPO3\CMS\Backend\AjaxLoginHandler::hasLoginBeenProcessed ( )
protected

Check whether the user was already authorized or not

Returns
boolean

Definition at line 63 of file AjaxLoginHandler.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Backend\AjaxLoginHandler\login().

◆ isAuthorizedBackendSession()

TYPO3\CMS\Backend\AjaxLoginHandler::isAuthorizedBackendSession ( )
protected

Checks if a user is logged in and the session is active.

Returns
boolean

Definition at line 54 of file AjaxLoginHandler.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Backend\AjaxLoginHandler\login().

◆ isTimedOut()

TYPO3\CMS\Backend\AjaxLoginHandler::isTimedOut ( array  $parameters,
\TYPO3\CMS\Core\Http\AjaxRequestHandler  $ajaxObj 
)

Checks if the user session is expired yet

Parameters
array$parametersParameters (not used)
\TYPO3\CMS\Core\Http\AjaxRequestHandler$ajaxObjThe calling parent AJAX object
Returns
void
Todo:
Define visibility

Definition at line 106 of file AjaxLoginHandler.php.

References $GLOBALS.

◆ login()

TYPO3\CMS\Backend\AjaxLoginHandler::login ( array  $parameters,
\TYPO3\CMS\Core\Http\AjaxRequestHandler  $ajaxObj 
)

Handles the actual login process, more specifically it defines the response. The login details were sent in as part of the ajax request and automatically logged in the user inside the init.php part of the ajax call. If that was successful, we have a BE user and reset the timer and hide the login window. If it was unsuccessful, we display that and show the login box again.

Parameters
array$parametersParameters (not used)
\TYPO3\CMS\Core\Http\AjaxRequestHandler$ajaxObjThe calling parent AJAX object
Returns
void

Definition at line 34 of file AjaxLoginHandler.php.

References TYPO3\CMS\Core\FormProtection\FormProtectionFactory\get(), TYPO3\CMS\Backend\AjaxLoginHandler\hasLoginBeenProcessed(), and TYPO3\CMS\Backend\AjaxLoginHandler\isAuthorizedBackendSession().

◆ logout()

TYPO3\CMS\Backend\AjaxLoginHandler::logout ( array  $parameters,
\TYPO3\CMS\Core\Http\AjaxRequestHandler  $ajaxObj 
)

Logs out the current BE user

Parameters
array$parametersParameters (not used)
\TYPO3\CMS\Core\Http\AjaxRequestHandler$ajaxObjThe calling parent AJAX object
Returns
void

Definition at line 75 of file AjaxLoginHandler.php.

References $GLOBALS.

◆ refreshLogin()

TYPO3\CMS\Backend\AjaxLoginHandler::refreshLogin ( array  $parameters,
\TYPO3\CMS\Core\Http\AjaxRequestHandler  $ajaxObj 
)

Refreshes the login without needing login information. We just refresh the session.

Parameters
array$parametersParameters (not used)
\TYPO3\CMS\Core\Http\AjaxRequestHandler$ajaxObjThe calling parent AJAX object
Returns
void

Definition at line 92 of file AjaxLoginHandler.php.

References $GLOBALS.