Passwords must be atleast 8 characters long"; } else { $userid = (int)confirmPasswordReset($token); if ($userid > 0) { if (changePasswordUid($userid, $newpassword)) { logoutAllSessions($userid); $alert = ""; } else { $alert = ""; } } else { WebContextManager::Redirect("/forgotpassword"); } } } else { $alert = ""; } } } else { WebContextManager::Redirect("/"); } } else { WebContextManager::Redirect("/"); } $body = << {$alert}
Reset Password
EOT; pageHandler(); $ph->pageTitle("Reset Password"); $ph->body = $body; $ph->output(); ?>