data['User'])) { if($this->obAuth->login($this->data['User'])) { $this->redirect('/users'); } $this->flash("Username/Password is incorrect"); } } function logout() { $this->obAuth->lock(); $this->obAuth->logout(); $this->flash('You are now logged out.'); $this->redirect('/'); } ?>