not_allowed()
public function not_allowed(): void
Description
Renders a "Access Temporarily Blocked" page when a user has exceeded the maximum number of login attempts. If the referring page was the login submission, a login link is provided.
Parameters
This method accepts no parameters.
Return Value
| Type | Description |
| void | Output rendered via the view template. |
Example Usage
// Called automatically on excessive failed login attempts
$should_block = $this->model->increment_failed_login_attempts($username);
if ($should_block) {
unset($_SESSION['form_submission_errors']);
redirect($this->module_name . '/not_allowed');
}
// The page displays:
// "Access Temporarily Blocked" message
// Optionally a "Try Again" login link if coming from submit_login