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

TypeDescription
voidRedirects with a success or error message.