login_check()
public function login_check(string $submitted_username): string|bool
Description
Validates the submitted username and password for login authentication against existing usernames and hashed passwords stored in the 'trongate_administrators' table.
This method is designed to be invoked as a form validation callback.
Parameters
| Parameter | Type | Description | Default | Required |
|---|---|---|---|---|
| $submitted_username | string | The username submitted for login authentication. | N/A | Required |
Return Value
| Type | Description |
|---|---|
| string|bool | Returns TRUE (bool) if authentication is successful, otherwise returns an error message (string). |