public function isPending() { return $this->status == self::STATUS_INACTIVE || empty($this->username); }
public function preDispatch() { if (empty($this->user)) { $this->_helper->redirector('index', 'auth'); } if ($this->user->isPending()) { $this->_helper->redirector('confirm', 'register'); } }