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. I am using Phalcon 2.0.10. What should i do to clear the password field?