public function testAction() { $config = Zend_Registry::get('appconf'); $storageAdapter = new Zing_Auth_Storage_Session(array('host' => $config->authorization->storage->host, 'port' => $config->authorization->storage->port)); $auth = new Zing_App_Auth(); $auth->setStorage($storageAdapter); if ($auth->isLogged()) { $identity = $auth->getIdentity(); var_dump($identity['username']); var_dump($this->checkUser($identity['username'])); } var_dump('a'); die; }
public function identityAction() { $config = Zend_Registry::get('appconf'); $storageAdapter = new Zing_Auth_Storage_Session(array('host' => $config->authorization->storage->host, 'port' => $config->authorization->storage->port)); $auth = new Zing_App_Auth(); $auth->setStorage($storageAdapter); if ($auth->isLogged()) { $identity = $auth->getIdentity(); var_dump($identity); die; $this->view->userNo = $identity['uin']; $this->userID = $identity['username']; } }