submit_login()
public function submit_login(): void
Description
Handles login form submission. Validates credentials against the configured target table, checks rate limiting, runs validation rules, and either logs the user in (generating a token) or records the failed attempt and redisplayes the form with errors.
On successful login, the user is redirected to their configured redirect_on_success URL. On failure, the form is redisplayed with validation errors.
Parameters
This method takes no parameters. Form data is retrieved via POST.
Return Value
| Type | Description |
|---|---|
| void | Redirects on success or redisplays the form on failure. |