submit_reset_password()

public function submit_reset_password(): void

Description

Processes the password reset form submission. Validates the reset token, updates the user's password in the database, destroys all existing authentication tokens for that user (forcing re-login on all devices), and redirects to the login page.

Parameters

This method takes no parameters. Form data is retrieved via POST.

Return Value

TypeDescription
voidRedirects to the login page on success, or redisplays the form on error.