/**
  * Finishes the active session redirecting to the index
  */
 public function endAction()
 {
     if ($auth = $this->session->get('auth')) {
         $user = Users::findFirstById($auth['id']);
         $name = $user ? $user->name : '';
         $this->flash->success("Goodbye {$name}!");
         $this->session->remove('auth');
     }
     return $this->forward('index/index');
 }