| @@ 799-802 (lines=4) @@ | ||
| 796 | // Hook to implement login failure tracking methods |
|
| 797 | $_params = []; |
|
| 798 | $sleep = true; |
|
| 799 | foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['postLoginFailureProcessing'] ?? [] as $_funcRef) { |
|
| 800 | GeneralUtility::callUserFunction($_funcRef, $_params, $this); |
|
| 801 | $sleep = false; |
|
| 802 | } |
|
| 803 | ||
| 804 | if ($sleep) { |
|
| 805 | // No hooks were triggered - default login failure behavior is to sleep 5 seconds |
|
| @@ 1680-1686 (lines=7) @@ | ||
| 1677 | public function checkEnableFields($row, $bypassGroupCheck = false) |
|
| 1678 | { |
|
| 1679 | $_params = ['pObj' => $this, 'row' => &$row, 'bypassGroupCheck' => &$bypassGroupCheck]; |
|
| 1680 | foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['hook_checkEnableFields'] ?? [] as $_funcRef) { |
|
| 1681 | // Call hooks: If one returns FALSE, method execution is aborted with result "This record is not available" |
|
| 1682 | $return = GeneralUtility::callUserFunction($_funcRef, $_params, $this); |
|
| 1683 | if ($return === false) { |
|
| 1684 | return false; |
|
| 1685 | } |
|
| 1686 | } |
|
| 1687 | if ((!$row['hidden'] || $this->showHiddenPage) && $row['starttime'] <= $GLOBALS['SIM_ACCESS_TIME'] && ($row['endtime'] == 0 || $row['endtime'] > $GLOBALS['SIM_ACCESS_TIME']) && ($bypassGroupCheck || $this->checkPageGroupAccess($row))) { |
|
| 1688 | return true; |
|
| 1689 | } |
|