submit_update_password()
public function submit_update_password(): void
Description
Handles the password update form submission. Validates that the password meets minimum requirements (8+ characters, matches confirmation), then updates the password in the database.
On success, redirects to the record's show page with a flash message. On validation failure, redisplays the password update form with errors.
Parameters
This method accepts no parameters (expects $_POST['password'], $_POST['confirm_password'], and URL segment 3 for the record ID).
Return Value
| Type | Description |
|---|---|
| void | Redirects after processing. |