We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

Browser return "The connection was reset" when use Validation

My purpose like this: https://stackoverflow.com/questions/21666082/phalcon-validation-doesnt-work-not-in-model

I want to validate when form login submit. When submit, i get message error from browser: "The connection was reset".

use Models\Glang\User;
use Phalcon\Validation\Validator\Email;

class LoginController extends \Phalcon\Mvc\Controller{
  public function indexAction($username = null, $password = null){

    $validation = new \Phalcon\Validation();
    $validation->add('email', new Email(array(
        'message' => 'The e-mail is not valid'
    $messages = $validation->validate($_POST);
    if (count($messages)) {
        foreach ($messages as $message) {
        echo $message, '<br>';

Please file this in GitHub as a bug. Nothing you do in Phalcon should cause the connection to reset. Fair warning: They'll probably ask you to create a simple test case.

i download Vokuro source code. When sign up, i input nothing and submit.

It also return "The connection was reset".

Thank your suggest.