public function term()
	{
		$terminal = Terminal::whereUserId($this->userId())->first();
		if (!$terminal) {
			$terminal = new Terminal;
			$terminal->user_id = $this->userId();
			$terminal->secret = md5($terminal->user_id . time() . uniqid());
			$terminal->mode = Terminal::C_STATE_OFFLINE;
			$terminal->save();
		}

		$this->make('term', compact('terminal'));
	}