EDIT: This question is for old version of phalcon. Phalcon now has 3.1 version, on which this issue seems to be fixed.
I have following controller action to sign user in.
public function signinAction()
{
$form = new SigninForm;
if ($this->security->checkToken())
{
try
{
$this->auth->signin($form);
} catch (Exception $e)
{
$this->flash->error($e->getMessage());
}
}
$form->clear();
$form->get('password')->clear();
\Phalcon\Tag::resetInput();
$this->view->form = $form;
}
The above clear
methods do not work and I get password field repopulated with user input.
EDIT: I am using Phalcon 2.0.10