submit_forgot_password()
public function submit_forgot_password(): void
Description
Processes the forgot-password form submission. Looks up the user by email address, generates a time-sensitive reset token, and sends a password reset email via the trongate_email module. The reset link expiry is controlled by reset_token_lifespan in config/login.php.
Parameters
This method takes no parameters. Form data is retrieved via POST.
Return Value
| Type | Description |
|---|---|
| void | Redirects with a success or error message. |