|
TYPO3 API
SVNRelease
|
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) | |
This is the ajax handler for backend login after timeout.
Definition at line 32 of file class.ajaxlogin.php.
| AjaxLogin::generateNewToken | ( | $ | oldToken | ) | [protected] |
Generate new token.
| string | $oldToken |
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.
| array | $parameters,: | Parameters (not used) |
| TYPO3AJAX | $parent,: | The calling parent AJAX object |
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
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.
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
| array | $parameters,: | Parameters (not used) |
| TYPO3AJAX | $ajaxObj,: | The calling parent AJAX object |
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.
| array | $parameters,: | Parameters (not used) |
| TYPO3AJAX | $ajaxObj,: | The calling parent AJAX object |
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
| array | $parameters,: | Parameters (not used) |
| TYPO3AJAX | $ajaxObj,: | The calling parent AJAX object |
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.
| array | $parameters,: | Parameters (not used) |
| TYPO3AJAX | $ajaxObj,: | The calling parent AJAX object |
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.
| 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().
1.7.5.1