/** * Verify the verification token of that user (to show the user the password editing view or not) * @param string $user_name username * @param string $verification_code password reset verification token */ public function verifyPasswordReset($user_name, $verification_code) { // check if this the provided verification code fits the user's verification code if (PasswordResetModel::verifyPasswordReset($user_name, $verification_code)) { // pass URL-provided variable to view to display them $this->View->render('login/resetPassword', array('user_name' => $user_name, 'user_password_reset_hash' => $verification_code)); } else { Redirect::to('login/index'); } }