problems login form

I am trying to build the INVO myself from the example In the SessionController I get errors.

class SessionController extends \Phalcon\Mvc\Controller {

public function initialize()
{
  $this->view->setTemplateAfter('main');
  Tag::setTitle('Login');
//  parent::initialize();
}

If I add the line Fatal error: Call to undefined method Phalcon\Mvc\Controller::initialize() in /usr/local/www/apache22/data/vlaming/app/controllers/SessionController.php on line 12

If I disable this line I will get: Sanitize filter password is not supported [code] public function startAction() { if($this->request->isPost()) { // Reeivinf the variables send by Post $email = $this->request->getPost('email', 'email'); $password = $this->request->getPost('password', 'password');

      //$password = sha1($password); // should be replaced by bcrypt

      //Find for the user in the database


      $this->flash->error('Wrong email/password');
  }

[/code]



2.8k

Ah I see 1 difference The class SessionController extends \Phalcon\Mvc\Controller class SessionController extends ControllerBase



2.8k

I still get the Sanitize filter password is not supported

Installed mcrypt did not help. phpinfo: http://owncloud.rayit.com/rayit/info.php



83.4k

There is no such filter 'password':

$password = $this->request->getPost('password', 'password');

You can leave it as just:

$password = $this->request->getPost('password');


2.8k

Many thanks! This works.