/**
  * Clears the authentification in the storage. When there is a user switch, only the authentication of the switched user should be cleared.
  * If there is no user switch, all authentication data should be cleared
  * @return null
  */
 protected function clearAuthentification()
 {
     if ($this->getSwitchedUsername()) {
         $this->session->set(self::SESSION_SWITCHED_USERNAME, null);
     } else {
         $this->session->set(self::SESSION_USERNAME, null);
         $this->session->set(self::SESSION_AUTHENTICATION_STRING, null);
     }
 }
Ejemplo n.º 2
0
 /**
  * Stores the current site and node to the session
  * @return null
  */
 public function postAction()
 {
     if ($this->site) {
         $this->session->set(self::SESSION_SITE, $this->site->id);
     } else {
         $this->session->set(self::SESSION_SITE);
     }
     if ($this->node) {
         $this->session->set(self::SESSION_NODE, $this->node->id);
     } else {
         $this->session->set(self::SESSION_NODE);
     }
 }
Ejemplo n.º 3
0
 /**
  * Resets this wizard
  * @return null
  */
 public function reset()
 {
     $this->session->set($this->name, array());
 }