We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Submit forgotPassword. It send mail but blank page

I used code vokuro master

Tag::setTitle('Forgot my password');
$form = new ForgotPasswordForm();

if ($this->request->isPost()) {

    if ($form->isValid($this->request->getPost()) == false) {
        foreach ($form->getMessages() as $message) {
            $this->flash->error($message);
        }
    } else {

        $user = Users::findFirstByEmail($this->request->getPost('email'));
        if (!$user) {
            $this->flash->success('There is no account associated to this email');
        } else {

            $resetPassword = new ResetPasswords();
            $resetPassword->usersId = $user->id;
            if ($resetPassword->save()) {
                $this->flash->success('Success! Please check your messages for an email reset password');
            } else {
                foreach ($resetPassword->getMessages() as $message) {
                    $this->flash->error($message);
                }
            }
        }
    }
}
$this->view->form = $form;

When i submit form. It sends mail successfully. But not return page. It return blank page not call file views

I see if comment code below. It worked. $this->getDI() ->getMail() ->send(array( $this->user->email => $this->user->name ), "Reset your password", 'reset', array( 'resetUrl' => '/reset-password/' . $this->code . '/' . $this->user->email ));

Take a look at this: Using Views You probably don't set properly a View Rendering Level