TYPO3 API  SVNRelease
Public Member Functions | Protected Member Functions
AjaxLogin Class Reference

List of all members.

Public Member Functions

 login (array $parameters, TYPO3AJAX $ajaxObj)
 logout (array $parameters, TYPO3AJAX $ajaxObj)
 refreshLogin (array $parameters, TYPO3AJAX $ajaxObj)
 isTimedOut (array $parameters, TYPO3AJAX $ajaxObj)
 getChallenge (array $parameters, TYPO3AJAX $parent)
 refreshTokens (array $parameters, TYPO3AJAX $parent)

Protected Member Functions

 isAuthorizedBackendSession ()
 hasLoginBeenProcessed ()
 generateNewToken ($oldToken)

Detailed Description

This is the ajax handler for backend login after timeout.

Author:
Christoph Koehler <christoph@webempoweredchurch.org>

Definition at line 32 of file class.ajaxlogin.php.


Member Function Documentation

AjaxLogin::generateNewToken ( oldToken) [protected]

Generate new token.

Parameters:
string$oldToken
Returns:
string regenerated Token

Definition at line 199 of file class.ajaxlogin.php.

References t3lib_formprotection_Factory\get().

Referenced by refreshTokens().

AjaxLogin::getChallenge ( array $  parameters,
TYPO3AJAX parent 
)

Gets a MD5 challenge.

Parameters:
array$parameters,:Parameters (not used)
TYPO3AJAX$parent,:The calling parent AJAX object
Returns:
void

Definition at line 157 of file class.ajaxlogin.php.

References TYPO3AJAX\addContent(), and TYPO3AJAX\setContentFormat().

AjaxLogin::hasLoginBeenProcessed ( ) [protected]

Check whether the user was not already authorized

Returns:
boolean

Definition at line 75 of file class.ajaxlogin.php.

References $GLOBALS.

Referenced by login().

AjaxLogin::isAuthorizedBackendSession ( ) [protected]

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

Returns:
boolean

Definition at line 66 of file class.ajaxlogin.php.

References $GLOBALS.

Referenced by login().

AjaxLogin::isTimedOut ( array $  parameters,
TYPO3AJAX ajaxObj 
)

Checks if the user session is expired yet

Parameters:
array$parameters,:Parameters (not used)
TYPO3AJAX$ajaxObj,:The calling parent AJAX object
Returns:
void

Definition at line 124 of file class.ajaxlogin.php.

References $GLOBALS, TYPO3AJAX\addContent(), and TYPO3AJAX\setContentFormat().

AjaxLogin::login ( array $  parameters,
TYPO3AJAX 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$parameters,:Parameters (not used)
TYPO3AJAX$ajaxObj,:The calling parent AJAX object
Returns:
void

Definition at line 45 of file class.ajaxlogin.php.

References $formprotection, TYPO3AJAX\addContent(), t3lib_formprotection_Factory\get(), hasLoginBeenProcessed(), isAuthorizedBackendSession(), and TYPO3AJAX\setContentFormat().

AjaxLogin::logout ( array $  parameters,
TYPO3AJAX ajaxObj 
)

Logs out the current BE user

Parameters:
array$parameters,:Parameters (not used)
TYPO3AJAX$ajaxObj,:The calling parent AJAX object
Returns:
void

Definition at line 92 of file class.ajaxlogin.php.

References $GLOBALS, TYPO3AJAX\addContent(), and TYPO3AJAX\setContentFormat().

AjaxLogin::refreshLogin ( array $  parameters,
TYPO3AJAX ajaxObj 
)

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

Parameters:
array$parameters,:Parameters (not used)
TYPO3AJAX$ajaxObj,:The calling parent AJAX object
Returns:
void

Definition at line 110 of file class.ajaxlogin.php.

References $GLOBALS, TYPO3AJAX\addContent(), and TYPO3AJAX\setContentFormat().

AjaxLogin::refreshTokens ( array $  parameters,
TYPO3AJAX parent 
)

Generates new tokens for the ones found in the DOM.

Parameters:
array$parameters,:Parameters (not used)
TYPO3AJAX$parent,:The calling parent AJAX object

Definition at line 174 of file class.ajaxlogin.php.

References $formprotection, t3lib_div\_GP(), TYPO3AJAX\addContent(), generateNewToken(), t3lib_formprotection_Factory\get(), and TYPO3AJAX\setContentFormat().


The documentation for this class was generated from the following file: