mam pewien problem, otóż czy wpisuję poprawne hasło czy nie, za każdym razem otrzymuję komunikat o błędzie.
public function action_index() { // Login $this->template->error = NULL; $username = ORM::factory('user', $_POST['login']); $this->auth->login( $username, $this->auth->hash_password( $_POST['password']), FALSE); if( $this->auth->logged_in()){ $this->request->redirect('panel'); }else{ $this->template->error = 'Niepoprawny login bądź hasło.'; } } $this->response->body( $this->template->render()); }